mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 09:16:36 +08:00
- 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). |
||
---|---|---|
.. | ||
ratio | ||
billing.go |