mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 00:03:00 +00:00
Claude models accessed through Google Cloud Code Assist API require explicit id fields in both functionCall and functionResponse parts. Without these IDs, the API returns 'tool_use.id: Field required' error. Add requiresToolCallId() helper to centralize the Claude model detection and include IDs in both tool call and tool result message conversions. |
||
|---|---|---|
| .. | ||
| providers | ||
| utils | ||
| cli.ts | ||
| index.ts | ||
| models.generated.ts | ||
| models.ts | ||
| stream.ts | ||
| types.ts | ||