mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
chore: add HTTP-Referer and X-Title headers for Open WebUI
This commit is contained in:
parent
90503be2ed
commit
6671e5f170
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user