old-agentic
Travis Fischer 2025-03-14 21:03:50 +08:00
rodzic caa16a5ae5
commit aec713d2ff
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -43,6 +43,8 @@ async function main() {
})
}
console.log()
{
// Second call to OpenAI to generate a text response
const res = await openai.chat.completions.create({
@ -52,7 +54,7 @@ async function main() {
tools: weather.functions.toolSpecs
})
const message = res.choices?.[0]?.message
console.log(JSON.stringify(message, null, 2))
console.log(message?.content)
}
}