fix(ai): normalize tool call ids and handoff tests fixes #821

This commit is contained in:
Mario Zechner 2026-01-19 00:10:49 +01:00
parent 298af5c1c2
commit 2c7c23b865
19 changed files with 570 additions and 1376 deletions

View file

@ -155,6 +155,7 @@ async function handleStreaming<TApi extends Api>(model: Model<TApi>, options?: O
const context: Context = {
messages: [{ role: "user", content: "Count from 1 to 3", timestamp: Date.now() }],
systemPrompt: "You are a helpful assistant.",
};
const s = stream(model, context, options);
@ -190,6 +191,7 @@ async function handleThinking<TApi extends Api>(model: Model<TApi>, options?: Op
timestamp: Date.now(),
},
],
systemPrompt: "You are a helpful assistant.",
};
const s = stream(model, context, options);
@ -245,6 +247,7 @@ async function handleImage<TApi extends Api>(model: Model<TApi>, options?: Optio
timestamp: Date.now(),
},
],
systemPrompt: "You are a helpful assistant.",
};
const response = await complete(model, context, options);