mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 22:01:41 +00:00
fix(ai): normalize tool call ids and handoff tests fixes #821
This commit is contained in:
parent
298af5c1c2
commit
2c7c23b865
19 changed files with 570 additions and 1376 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue