fix follow up prompt for openai

This commit is contained in:
Henry 2025-07-30 23:20:38 +01:00
parent 5259bab778
commit 398e0bf83f
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