Bugfix/Follow up prompt for openai (#4987)
fix follow up prompt for openai
This commit is contained in:
parent
5259bab778
commit
049596a7b5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue