chore: format

This commit is contained in:
Timothy Jaeryang Baek
2025-08-09 02:05:07 +04:00
parent 92f27bb21e
commit 4b41cd1891
57 changed files with 1292 additions and 58 deletions
+3 -1
View File
@@ -806,7 +806,9 @@ async def generate_chat_completion(
key = request.app.state.config.OPENAI_API_KEYS[idx]
# Check if model is a reasoning model that needs special handling
is_reasoning_model = payload["model"].lower().startswith(("o1", "o3", "o4", "gpt-5"))
is_reasoning_model = (
payload["model"].lower().startswith(("o1", "o3", "o4", "gpt-5"))
)
if is_reasoning_model:
payload = openai_reasoning_model_handler(payload)
elif "api.openai.com" not in url: