add safety_identifier

This commit is contained in:
ota42y 2025-12-08 13:47:57 +00:00
parent ce945a9334
commit 06f151d545

View file

@ -875,6 +875,8 @@ async def generate_chat_completion(
"role": user.role,
}
payload["safety_identifier"] = user.id
url = request.app.state.config.OPENAI_API_BASE_URLS[idx]
key = request.app.state.config.OPENAI_API_KEYS[idx]