Skip to content

Commit

Permalink
fix: remove quotation marks from the generated titles (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 authored May 11, 2023
1 parent fb53af2 commit 6965a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logics/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const handlePrompt = async(conversation: Conversation, prompt?: string, s
const rapidPayload = generateRapidProviderPayload(promptHelper.summarizeText(inputText), provider.id)
const generatedTitle = await getProviderResponse(provider.id, rapidPayload).catch(() => {}) as string || inputText
updateConversationById(conversation.id, {
name: generatedTitle,
name: generatedTitle.replace(/^['"\s]+|['"\s]+$/g, ''),
})
}
}
Expand Down

0 comments on commit 6965a65

Please sign in to comment.