Skip to content

Commit

Permalink
🐛 Bug: Add feature: Support chatgpt-4o-latest automatic deletion of t…
Browse files Browse the repository at this point in the history
…ool request body.
  • Loading branch information
yym68686 committed Dec 1, 2024
1 parent 97bc62b commit 24a1d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ async def get_gpt_payload(request, engine, provider):
else:
payload[field] = value

if provider.get("tools") == False or "o1" in model:
if provider.get("tools") == False or "o1" in model or "chatgpt-4o-latest" in model:
payload.pop("tools", None)
payload.pop("tool_choice", None)
if "o1" in model and "models.inference.ai.azure.com" in url:
Expand Down

0 comments on commit 24a1d96

Please sign in to comment.