Files
CyberStrikeAI/internal
donnel 4442e7de30 feat: add Claude API bridge - transparent OpenAI-to-Anthropic protocol conversion
When provider is set to "claude" in config, all OpenAI-compatible API calls
are automatically bridged to Anthropic Claude Messages API, including:

- Non-streaming and streaming chat completions
- Tool calls (function calling) with full bidirectional conversion
- Eino multi-agent via HTTP transport hook (claudeRoundTripper)
- System message extraction, auth header conversion (Bearer → x-api-key)
- SSE stream format conversion (content_block_delta → OpenAI delta)
- TestOpenAI handler support for Claude connectivity testing

Zero impact when provider is "openai" or empty (default behavior unchanged).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 13:45:35 +08:00
..
2026-03-29 01:22:17 +08:00
2026-04-13 23:17:01 +08:00
2026-04-03 22:09:23 +08:00
2026-04-13 23:17:01 +08:00
2026-04-08 22:15:25 +08:00
2026-04-13 23:17:01 +08:00
2026-04-08 00:18:07 +08:00
2026-03-27 00:45:19 +08:00