Model Management

Model Mapping

Model mapping allows you to map request model names to actual models used by providers, supporting OpenAI compatibility, model aliases, and provider preferences.

Overview

Model mapping allows you to:

  • Use OpenAI model names with different providers
  • Create model aliases for easier invocation
  • Route specific models to preferred providers or accounts

Adding a Mapping

  1. Navigate to Model Management > Model Mapping
  2. Click Add Mapping
  3. Configure the mapping rule
  4. Save changes

Mapping Configuration

Basic Mapping

FieldDescription
Request ModelModel name in the API request
Actual ModelModel name sent to the provider
Preferred Provider(Optional) Specific provider to use
Preferred Account(Optional) Specific account to use

Example

Map gpt-4 to DeepSeek-V3.2:

Request ModelActual ModelProvider
gpt-4DeepSeek-V3.2DeepSeek
# Request with gpt-4
curl http://localhost:8080/v1/chat/completions \
  -d '{"model": "gpt-4", "messages": [...]}'

# Actually uses DeepSeek-V3.2 on DeepSeek

Wildcard Mapping

Use * as a wildcard to match multiple models.

Examples

PatternMatches
gpt-*gpt-4, gpt-3.5-turbo, gpt-4o
gpt-4*gpt-4, gpt-4o, gpt-4-turbo
*-turbogpt-3.5-turbo, gpt-4-turbo

Wildcard mappings are evaluated in order. More specific patterns should come first.

Priority Rules

When multiple mappings could match:

  1. Exact match takes priority over wildcards
  2. Earlier rules take priority over later ones
  3. Provider-specific rules take priority over global rules

Example Priority

OrderRequest ModelActual ModelPriority
1gpt-4DeepSeek-V3.2High (exact)
2gpt-*GLM-5Low (wildcard)

Provider Preference

Route specific models to preferred providers:

Request ModelActual ModelProvider
gpt-4DeepSeek-V3.2DeepSeek
gpt-4GLM-5GLM

If the preferred provider is unavailable, the system will try other providers.

Account Preference

Route to specific accounts within a provider:

Request ModelActual ModelProviderAccount
gpt-4-premiumDeepSeek-V3.2DeepSeekPremium Account

Use Cases

OpenAI Compatibility

Map OpenAI model names to use with other providers:

RequestActual
gpt-4DeepSeek-V3.2
gpt-3.5-turboGLM-5
gpt-4-visionQwen3-VL-235B-A22B

Model Aliases

Create aliases for easier reference:

RequestActual
fastDeepSeek-V3.2
smartKimi-K2.5
codeQwen3-Coder

Testing

Route test requests to specific accounts:

RequestActualAccount
test-modelDeepSeek-V3.2Test Account

Managing Mappings

Edit Mapping

  1. Find the mapping in the list
  2. Click Edit
  3. Modify the settings
  4. Save changes

Delete Mapping

  1. Find the mapping in the list
  2. Click Delete
  3. Confirm deletion

On this page