pull/693/head
Travis Fischer 2025-03-14 21:03:50 +08:00
rodzic 17525fac45
commit da4c28b159
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)
}
}