소스 검색

Merge pull request #545 from ollama-webui/openai-fix

fix: openai
Timothy Jaeryang Baek 1 년 전
부모
커밋
b246c62d2c
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      backend/apps/openai/main.py

+ 0 - 1
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)
         body = json.dumps(body)
     except json.JSONDecodeError as e:
     except json.JSONDecodeError as e:
         print("Error loading request body into a dictionary:", e)
         print("Error loading request body into a dictionary:", e)
-        raise HTTPException(status_code=400, detail="Invalid JSON in request body")
 
 
     headers = {}
     headers = {}
     headers["Authorization"] = f"Bearer {app.state.OPENAI_API_KEY}"
     headers["Authorization"] = f"Bearer {app.state.OPENAI_API_KEY}"