one-api/relay/controller
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
..
validator chore: remove helper & util subpackage for relay 2024-04-06 01:50:12 +08:00
audio.go chore: update model mapping implementation for audio (#1932) 2024-12-22 19:33:11 +08:00
error.go fix: fix aws claude panic (#1384) 2024-04-29 22:49:06 +08:00
helper.go feat: implement model alias system for unified model names 2025-08-27 02:24:38 +08:00
image.go chore: update log content 2025-01-31 20:15:04 +08:00
proxy.go feat: add Proxy channel type and relay mode (#1678) 2024-07-22 22:51:19 +08:00
text.go feat: implement model alias system for unified model names 2025-08-27 02:24:38 +08:00