mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 04:10:51 +08:00
- Added a new routing package to manage provider registration and model resolution. - Introduced Router, Executor, and Provider interfaces to handle different provider types. - Implemented OAuthProvider and APIKeyProvider to support OAuth and API key authentication. - Enhanced DefaultModelMapper to include OAuth model alias handling and fallback mechanisms. - Updated context management in API handlers to preserve fallback models. - Added tests for routing logic and provider selection. - Enhanced Claude request conversion to handle reasoning content based on thinking mode.
12 lines
248 B
Go
12 lines
248 B
Go
package ctxkeys
|
|
|
|
type key string
|
|
|
|
const (
|
|
MappedModel key = "mapped_model"
|
|
FallbackModels key = "fallback_models"
|
|
RouteCandidates key = "route_candidates"
|
|
RoutingDecision key = "routing_decision"
|
|
MappingApplied key = "mapping_applied"
|
|
)
|