fix: improve error logging for OpenAI API call by removing redundant stderr redirection

This commit is contained in:
robertsLando 2025-08-28 14:57:07 +02:00
parent 5b53026395
commit fd0e2f489e
No known key found for this signature in database

View File

@ -118,7 +118,7 @@ def call_openai_api(prompt, api_key, model="gpt-3.5-turbo"):
else:
return None
except Exception as e:
print(f"OpenAI API error: {e}", file=sys.stderr)
print(f"OpenAI API error: {e}")
return None