mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 21:03:42 +00:00
- Anthropic API requires tool call IDs to match pattern ^[a-zA-Z0-9_-]+$ - OpenAI Responses API generates IDs with pipe character (|) which breaks Anthropic - Added sanitizeToolCallId() to replace invalid characters with underscores - Fixes cross-provider handoffs from OpenAI Responses to Anthropic - Added test to verify the fix works |
||
|---|---|---|
| .. | ||
| data | ||
| abort.test.ts | ||
| cross-provider-toolcall.test.ts | ||
| empty.test.ts | ||
| generate.test.ts | ||
| handoff.test.ts | ||