chore: format

This commit is contained in:
Timothy Jaeryang Baek committed 2025-08-09 02:05:07 +04:00
1 parent 92f27bb21e
commit 4b41cd1891
57 files changed
+1292 -58

No files matched your search

+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: