fix: reduce max_tokens for OpenAI API call to optimize response size

This commit is contained in:
robertsLando 2025-08-28 15:06:40 +02:00
parent f88b149a26
commit 11940cd336
No known key found for this signature in database

View File

@ -106,7 +106,7 @@ def call_openai_api(prompt, api_key, model="gpt-3.5-turbo"):
{"role": "user", "content": prompt},
],
"temperature": 0.1,
"max_tokens": 4000,
"max_tokens": 1000,
}
try: