From 24a1d96cc11ed26577d0e4f5663c93a2cf839783 Mon Sep 17 00:00:00 2001 From: yym68686 Date: Sun, 1 Dec 2024 20:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Bug:=20Add=20feature:=20Support?= =?UTF-8?q?=20chatgpt-4o-latest=20automatic=20deletion=20of=20tool=20reque?= =?UTF-8?q?st=20body.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request.py b/request.py index b3b6dc1..2ace333 100644 --- a/request.py +++ b/request.py @@ -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: