mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +00:00
chore: add HTTP-Referer and X-Title headers for Open WebUI
This commit is contained in:
parent
90503be2ed
commit
6671e5f170
1 changed files with 2 additions and 0 deletions
|
|
@ -116,6 +116,8 @@ async def speech(request: Request, user=Depends(get_verified_user)):
|
||||||
headers = {}
|
headers = {}
|
||||||
headers["Authorization"] = f"Bearer {app.state.OPENAI_API_KEYS[idx]}"
|
headers["Authorization"] = f"Bearer {app.state.OPENAI_API_KEYS[idx]}"
|
||||||
headers["Content-Type"] = "application/json"
|
headers["Content-Type"] = "application/json"
|
||||||
|
headers['HTTP-Referer'] = "https://openwebui.com/"
|
||||||
|
headers['X-Title'] = "Open WebUI"
|
||||||
|
|
||||||
r = None
|
r = None
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue