Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support model alias #1150

Merged
merged 1 commit into from
Feb 6, 2025
Merged

feat: support model alias #1150

merged 1 commit into from
Feb 6, 2025

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Feb 6, 2025

This PR allows the use of name as an alias and real_name as the model value to send to the LLM provider.

Benifits

1. Support the same models with different configuration sets

# o3-mini with different `reasoning_effort`
models:
- name: o3-mini-high  # patch body with extra `reasoning_effort: high`
  real_name: o3-mini
- name: o3-mini-low   # patch body with extra `reasoning_effort: low`
  real_name: o3-mini

# gemini-2.0-flash with search capability
models:
- name: gemini-2.0-flash-online # patch body with `"tools": [{"google_search_retrieval": {}}]`
  real_name: gemini-2.0-flash

2. Support models that only have randomly generated names (#1147)

models:
- name: doubao-1.5-pro
  real_name: ep-xxxx-yyyy

3. Support alias

# Get rid of api version
models:
- name: gemini-flash
  real_name: gemini-2.0-flash-001

# Simplify long name
models:
- name: llama-3.3-70b
  real_name: accounts/fireworks/models/llama-v3p3-70b-instruct

@sigoden sigoden merged commit a491820 into main Feb 6, 2025
3 checks passed
@sigoden sigoden deleted the feat branch February 6, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant