Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

bump output max tokens for GPT 4.1

Abi Rajafc2283854756
diff --git a/backend/models/openai_client.py b/backend/models/openai_client.py
index 67ffd5fb..8def6cd4 100644
--- a/backend/models/openai_client.py
+++ b/backend/models/openai_client.py
@@ -35,7 +35,7 @@ async def stream_openai_response(
]:
params["temperature"] = 0
params["stream"] = True
- params["max_tokens"] = 10000
+ params["max_tokens"] = 20000
if model_name == "gpt-4o-2024-05-13":
params["max_tokens"] = 4096