We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71399e7 commit a5fd7bbCopy full SHA for a5fd7bb
packages/agents-openai/src/openaiChatCompletionsModel.ts
@@ -67,7 +67,7 @@ export class OpenAIChatCompletionsModel implements Model {
67
const output: protocol.OutputModelItem[] = [];
68
if (response.choices && response.choices[0]) {
69
const message = response.choices[0].message;
70
- if (message.content !== undefined) {
+ if (message.content) {
71
const { content, ...rest } = message;
72
output.push({
73
id: response.id,
0 commit comments