one-api/relay/model
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
..
alias_test.go feat: implement model alias system for unified model names 2025-08-27 02:24:38 +08:00
alias.go feat: implement model alias system for unified model names 2025-08-27 02:24:38 +08:00
constant.go feat: always return usage in stream mode 2024-10-27 17:58:44 +08:00
general.go feat: add completion tokens details and reasoning effort fields to model (close #2050) 2025-02-09 18:14:01 +08:00
image.go feat: support Ali stable-diffusion-xl and wanx-v1 model (#1240) 2024-04-05 18:09:54 +08:00
message.go fix: fix Debugf not using DebugEnabled (close #2068) 2025-02-09 10:57:22 +08:00
misc.go feat: add completion tokens details and reasoning effort fields to model (close #2050) 2025-02-09 18:14:01 +08:00
tool.go feat: add support for Claude 3 tool use (function calling) (#1587) 2024-07-02 00:12:01 +08:00