Compare commits

...

1 Commits

Author SHA1 Message Date
Henry 398e0bf83f fix follow up prompt for openai 2025-07-30 23:20:38 +01:00
1 changed files with 3 additions and 1 deletions

View File

@ -95,8 +95,10 @@ export const generateFollowUpPrompts = async (
const model = new ChatOpenAI({
apiKey: credentialData.openAIApiKey,
model: providerConfig.modelName,
temperature: parseFloat(`${providerConfig.temperature}`)
temperature: parseFloat(`${providerConfig.temperature}`),
useResponsesApi: true
})
// @ts-ignore
const structuredLLM = model.withStructuredOutput(FollowUpPromptType)
const structuredResponse = await structuredLLM.invoke(followUpPromptsPrompt)
return structuredResponse