Skip to content

Commit b265903

Browse files
committed
Fix code so unit tests continue to work.
1 parent e00389d commit b265903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/agents-openai/src/openaiChatCompletionsModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class OpenAIChatCompletionsModel implements Model {
6767
const output: protocol.OutputModelItem[] = [];
6868
if (response.choices && response.choices[0]) {
6969
const message = response.choices[0].message;
70-
if (message.content) {
70+
if (message.content !== undefined && message.content !== null) {
7171
const { content, ...rest } = message;
7272
output.push({
7373
id: response.id,

0 commit comments

Comments
 (0)