pull/718/head
Travis Fischer 2025-07-01 13:41:27 -05:00
rodzic b5a9f724ee
commit a7e8294315
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -206,14 +206,14 @@ const searchTool = await AgenticToolClient.fromIdentifier('${identifier}')
// This example uses OpenAI's Chat Completions API
const res = await openai.chat.completions.create({
model: 'gpt-4o-mini',
tools: searchTool.functions.toolSpecs,
tool_choice: 'required',
messages: [
{
role: 'user',
content: '${prompt}'
}
],
tools: searchTool.functions.toolSpecs,
tool_choice: 'required'
]
})
const message = res.choices[0]!.message!