Remove unsupported OpenAI temperature override
This commit is contained in:
+1
-1
@@ -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),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user