Skip to content

Commit

Permalink
fix: rapid request don't read settings, link #55
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiu8081 committed Jun 4, 2023
1 parent b9ae7d3 commit 924393b
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 @@ -88,7 +88,7 @@ export const handlePrompt = async(conversation: Conversation, prompt?: string, s
if (providerResponse && bot.type === 'chat_continuous' && !conversation.name) {
const inputText = conversation.systemInfo || prompt!
const rapidPayload = generateRapidProviderPayload(promptHelper.summarizeText(inputText), provider.id)
const generatedTitle = await getProviderResponse(provider.id, rapidPayload).catch(() => {}) as string || inputText
const generatedTitle = await getProviderResponse(provider.id, rapidPayload, { caller: callMethod }).catch(() => {}) as string || inputText
updateConversationById(conversation.id, {
name: generatedTitle.replace(/^['"\s]+|['"\s]+$/g, ''),
})
Expand Down

0 comments on commit 924393b

Please sign in to comment.