diff --git a/legacy/examples/openai/bin/weather.ts b/legacy/examples/openai/bin/weather.ts index c50b0245..c9bd2619 100644 --- a/legacy/examples/openai/bin/weather.ts +++ b/legacy/examples/openai/bin/weather.ts @@ -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) } }