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

fix: openai
This commit is contained in:
Timothy Jaeryang Baek 2024-01-22 09:46:39 -08:00 committed by GitHub
commit b246c62d2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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}"