"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "797ed9ac7f5590bd0358e55f632ec5f729873d21"
Commit d67c6329 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: openai

parent 92d85ae2
...@@ -95,7 +95,6 @@ async def proxy(path: str, request: Request, user=Depends(get_current_user)): ...@@ -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}"
......
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