fix
This commit is contained in:
parent
27b95effbf
commit
f6f5137c9b
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ The proxy automatically maps Claude models to OpenAI models:
|
||||||
| Claude Model | OpenAI Model |
|
| Claude Model | OpenAI Model |
|
||||||
|--------------|--------------|
|
|--------------|--------------|
|
||||||
| haiku | gpt-4o-mini |
|
| haiku | gpt-4o-mini |
|
||||||
| sonnet | o3-mini |
|
| sonnet | gpt-4o |
|
||||||
|
|
||||||
|
|
||||||
You can customize these mappings in `server.py` by editing the `validate_model` function. 🔧
|
You can customize these mappings in `server.py` by editing the `validate_model` function. 🔧
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ class MessagesRequest(BaseModel):
|
||||||
|
|
||||||
# Swap any Sonnet model with 4o
|
# Swap any Sonnet model with 4o
|
||||||
if 'sonnet' in v.lower():
|
if 'sonnet' in v.lower():
|
||||||
new_model = "openai/o3-mini"
|
new_model = "openai/gpt-4o"
|
||||||
logger.debug(f"📌 MODEL MAPPING: {original_model} ➡️ {new_model}")
|
logger.debug(f"📌 MODEL MAPPING: {original_model} ➡️ {new_model}")
|
||||||
return new_model
|
return new_model
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue