From d67c632920657fec1f1d802a071481d1b9cc72a8 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 22 Jan 2024 09:45:56 -0800 Subject: [PATCH] fix: openai --- backend/apps/openai/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/apps/openai/main.py b/backend/apps/openai/main.py index 1529ab93f..780475ad2 100644 --- a/backend/apps/openai/main.py +++ b/backend/apps/openai/main.py @@ -95,7 +95,6 @@ async def proxy(path: str, request: Request, user=Depends(get_current_user)): body = json.dumps(body) except json.JSONDecodeError as e: print("Error loading request body into a dictionary:", e) - raise HTTPException(status_code=400, detail="Invalid JSON in request body") headers = {} headers["Authorization"] = f"Bearer {app.state.OPENAI_API_KEY}"