From 800a660c081908676b8c9d9a62197c4250bb8e42 Mon Sep 17 00:00:00 2001 From: zihanjian Date: Sun, 19 Oct 2025 18:43:42 +0800 Subject: [PATCH] temperature --- ai_providers/ai_chatgpt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ai_providers/ai_chatgpt.py b/ai_providers/ai_chatgpt.py index 4e0c0b2..9d7d4b7 100644 --- a/ai_providers/ai_chatgpt.py +++ b/ai_providers/ai_chatgpt.py @@ -155,9 +155,9 @@ class ChatGPT(): iterations = 0 params_base = {"model": self.model} - # 只有非o系列模型才设置temperature - if not self.model.startswith("o"): - params_base["temperature"] = 0.2 + # # 只有非o系列模型才设置temperature + # if not self.model.startswith("o"): + # params_base["temperature"] = 0.2 # 确保工具参数格式正确 runtime_tools = tools if tools and isinstance(tools, list) else None @@ -295,8 +295,8 @@ class ChatGPT(): "max_tokens": 1000 } - if not self.model.startswith("o"): - params["temperature"] = 0.7 + # if not self.model.startswith("o"): + # params["temperature"] = 0.7 response = self.client.chat.completions.create(**params) description = response.choices[0].message.content