inconsistency in titles generated by GPT #1134
Labels
bug
Something isn't working
good first issue
Good for newcomers
valid
This issue/PR is validated and ready to be picked. This auto adds items to TJ project board.
Describe the bug
as shown in the screenshot, title is quoted sometimes when question is transfered via
TransferQuestionCommand
, mainly due to inconsistency in response from GPT.Expected behavior
Title shouldnt have any quotation marks
Additional context
Above piece of code is responsible for generating title in
TransferQuestionCommand#onMessageContext
, to solve this issue instead of directly assigning generated text from GPT as title, it should be santized by removing quotations if present.The text was updated successfully, but these errors were encountered: