mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
chore: add HTTP-Referer and X-Title headers for Open WebUI
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user