This commit is contained in:
Rahul Sengottuvelu 2025-03-18 20:47:42 -04:00
parent 27b95effbf
commit f6f5137c9b
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ The proxy automatically maps Claude models to OpenAI models:
| Claude Model | OpenAI Model |
|--------------|--------------|
| haiku | gpt-4o-mini |
| sonnet | o3-mini |
| sonnet | gpt-4o |
You can customize these mappings in `server.py` by editing the `validate_model` function. 🔧

View file

@ -145,7 +145,7 @@ class MessagesRequest(BaseModel):
# Swap any Sonnet model with 4o
if 'sonnet' in v.lower():
new_model = "openai/o3-mini"
new_model = "openai/gpt-4o"
logger.debug(f"📌 MODEL MAPPING: {original_model} ➡️ {new_model}")
return new_model