Commit 6671e5f1 authored by Alok Saboo's avatar Alok Saboo
Browse files

chore: add HTTP-Referer and X-Title headers for Open WebUI

parent 90503be2
......@@ -116,6 +116,8 @@ async def speech(request: Request, user=Depends(get_verified_user)):
headers = {}
headers["Authorization"] = f"Bearer {app.state.OPENAI_API_KEYS[idx]}"
headers["Content-Type"] = "application/json"
headers['HTTP-Referer'] = "https://openwebui.com/"
headers['X-Title'] = "Open WebUI"
r = None
try:
......
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