1 parent 0f22862 commit 45c7764Copy full SHA for 45c7764
1 file changed
src/lib/inference/health.test.ts
@@ -295,6 +295,11 @@ describe("inference health", () => {
295
],
296
["numeric streaming delta", 'data: {"choices":[{"delta":{"content":123}}]}\n'],
297
["a null content field and no tool call", '{"choices":[{"message":{"content":null}}]}'],
298
+ [
299
+ "a null reasoning field and no tool call",
300
+ '{"choices":[{"message":{"reasoning_content":null}}]}',
301
+ ],
302
+ ["a null refusal field and no tool call", '{"choices":[{"message":{"refusal":null}}]}'],
303
])("rejects a Chat Completions response with %s", (_description, body) => {
304
const result = probeRemoteProviderHealth("openai-api", {
305
model: "gpt-4o-mini",
0 commit comments