Unverified Commit b246c62d authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

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

fix: openai
parents 92d85ae2 d67c6329
......@@ -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}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment