co-mono/packages/ai/test
Mario Zechner 6679a83b32 fix(ai): Sanitize tool call IDs for Anthropic API compatibility
- 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
2025-09-04 05:17:08 +02:00
..
data feat(ai): Add image input tests for vision-capable models 2025-08-30 18:37:17 +02:00
abort.test.ts Clean-up 2025-09-03 00:01:32 +02:00
cross-provider-toolcall.test.ts fix(ai): Sanitize tool call IDs for Anthropic API compatibility 2025-09-04 05:17:08 +02:00
empty.test.ts Massive refactor of API 2025-09-02 23:59:36 +02:00
generate.test.ts Massive refactor of API 2025-09-02 23:59:36 +02:00
handoff.test.ts Massive refactor of API 2025-09-02 23:59:36 +02:00