fix(ai): normalize tool call ids and handoff tests fixes #821
This commit is contained in:
@@ -71,6 +71,7 @@ export const streamGoogle: StreamFunction<"google-generative-ai"> = (
|
||||
const apiKey = options?.apiKey || getEnvApiKey(model.provider) || "";
|
||||
const client = createClient(model, apiKey);
|
||||
const params = buildParams(model, context, options);
|
||||
options?.onPayload?.(params);
|
||||
const googleStream = await client.models.generateContentStream(params);
|
||||
|
||||
stream.push({ type: "start", partial: output });
|
||||
|
||||
Reference in New Issue
Block a user