Skip to content

Commit 35c0dc7

Browse files
committed
Add missing refusal property to ChatCompletionMessage
TypeScript build was failing because the ChatCompletionMessage type requires a refusal property. Set it to null for Responses API conversions.
1 parent 7c3850b commit 35c0dc7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

js/oai.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,10 @@ export async function cachedChatCompletion(
403403
role: "assistant",
404404
content,
405405
tool_calls: tool_calls.length > 0 ? tool_calls : undefined,
406+
refusal: null,
406407
},
407408
finish_reason: response.stop_reason || "stop",
409+
logprobs: null,
408410
}],
409411
};
410412

0 commit comments

Comments
 (0)