one-api/relay
longkeyy 18fc5fc0be feat: implement model alias system for unified model names
- Add comprehensive model alias mapping system in relay/model/alias.go
- Support standard model names (gpt-4o, claude-3-sonnet) across different channels
- Modify AddAbilities() to create aliases for both standard and channel-specific names
- Update text processing to resolve aliases before channel-specific mapping
- Enhance billing system to support alias-based model ratio lookup
- Add comprehensive tests for alias resolution and reverse mapping
- Support major providers: OpenRouter, Anthropic, Gemini, Groq

This allows users to use consistent model names (e.g., 'gpt-4o')
regardless of channel provider, with automatic mapping to
channel-specific names (e.g., 'openai/gpt-4o' for OpenRouter).
2025-08-27 02:24:38 +08:00
..
adaptor feat: update openrouter models and price 20250213 (#2084) 2025-02-16 18:01:59 +08:00
apitype feat: support replicate chat models (#1989) 2024-12-21 14:41:19 +08:00
billing feat: implement model alias system for unified model names 2025-08-27 02:24:38 +08:00
channeltype feat: support Gemini openai compatible api 2025-02-16 17:59:39 +08:00
constant feat: support set system prompt for channel (close #1920) 2024-11-10 14:53:34 +08:00
controller feat: implement model alias system for unified model names 2025-08-27 02:24:38 +08:00
meta fix: update system prompt handling by renaming field and ensuring proper usage in request processing (close #2069) 2025-02-09 14:41:42 +08:00
model feat: implement model alias system for unified model names 2025-08-27 02:24:38 +08:00
relaymode feat: add Proxy channel type and relay mode (#1678) 2024-07-22 22:51:19 +08:00
adaptor_test.go chore: add ut 2024-06-23 14:28:55 +08:00
adaptor.go feat: support replicate chat models (#1989) 2024-12-21 14:41:19 +08:00