mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
7b3cfc683a
Phase 2: extend check_openclaw_stream to cover the full non-Bedrock protocol set declared by openclawApiProtocols. - openai-responses → check_claude_stream(api_format="openai_responses") - anthropic-messages → check_claude_stream(api_format="anthropic"), using AuthStrategy::ClaudeAuth (Bearer-only) so Claude relay services that reject a simultaneous x-api-key still work. Official Anthropic also accepts pure Bearer on /v1/messages. - google-generative-ai → check_gemini_stream with AuthStrategy::Google. bedrock-converse-stream still errors out but with a dedicated openclaw_bedrock_not_supported key; its user-facing message will be polished in phase 4. Each protocol now builds its own AuthInfo inside the match arm because the auth strategy is protocol-specific.
7b3cfc683a
·
2026-04-09 16:49:13 +08:00
History