kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic
rodzic
caa16a5ae5
commit
aec713d2ff
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue