mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
add safety_identifier
This commit is contained in:
parent
ce945a9334
commit
06f151d545
1 changed files with 2 additions and 0 deletions
|
|
@ -875,6 +875,8 @@ async def generate_chat_completion(
|
||||||
"role": user.role,
|
"role": user.role,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
payload["safety_identifier"] = user.id
|
||||||
|
|
||||||
url = request.app.state.config.OPENAI_API_BASE_URLS[idx]
|
url = request.app.state.config.OPENAI_API_BASE_URLS[idx]
|
||||||
key = request.app.state.config.OPENAI_API_KEYS[idx]
|
key = request.app.state.config.OPENAI_API_KEYS[idx]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue