Repository navigation
fix: replace Alibaba's Claude-compatible url with new url - #2702
Conversation
WalkthroughAdds model-based branching in the Ali channel Claude adaptor: detect AliAnthropic-compatible models, route requests and responses either to Anthropic/v1 messages (using Claude handlers) or convert/delegate to OpenAI-style handling; updates request URL selection and response routing accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant AliAdaptor
participant ClaudeHandlers
participant OpenAIAdaptor
participant AnthropicAPI
participant OpenAIAPI
Client->>AliAdaptor: Send Claude-format request (with model)
AliAdaptor->>AliAdaptor: supportsAliAnthropicMessages(model)?
alt model supports AliAnthropic
AliAdaptor->>ClaudeHandlers: handle request (stream? / standard)
ClaudeHandlers->>AnthropicAPI: call Anthropic v1/messages
AnthropicAPI-->>ClaudeHandlers: response/stream
ClaudeHandlers-->>AliAdaptor: relay response
AliAdaptor-->>Client: return response/stream
else not supported
AliAdaptor->>OpenAIAdaptor: convert request to OpenAI-like
OpenAIAdaptor->>OpenAIAPI: forward request
OpenAIAPI-->>OpenAIAdaptor: response/stream
OpenAIAdaptor-->>AliAdaptor: relay response
AliAdaptor-->>Client: return response/stream
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…tible interface; others require conversion.
fix: replace Alibaba's Claude-compatible url with new url
fix: replace Alibaba's Claude-compatible url with new url
fix: replace Alibaba's Claude-compatible url with new url
Summary by CodeRabbit
New Features
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.