Remove unsupported OpenAI temperature override

This commit is contained in:
Adolfo Reyna
2026-03-17 00:55:31 -04:00
parent 487cb83080
commit 53060918e9
+1 -1
View File
@@ -99,7 +99,7 @@ def run_llm_processor(in_queue, out_queue, args):
def call_openai(messages): def call_openai(messages):
response = requests.post( response = requests.post(
"https://api.openai.com/v1/chat/completions", "https://api.openai.com/v1/chat/completions",
json={"model": args.post_correct_model, "messages": messages, "temperature": 0.1}, json={"model": args.post_correct_model, "messages": messages},
headers={"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}, headers={"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"},
timeout=getattr(args, "post_correct_llm_timeout", 8.0), timeout=getattr(args, "post_correct_llm_timeout", 8.0),
) )