fix(agent): apply thinking level and temperature settings

This commit is contained in:
jxxghp
2026-07-26 08:25:00 +08:00
parent a1a6376adc
commit 1b065cc08b
6 changed files with 252 additions and 123 deletions
+3 -2
View File
@@ -749,8 +749,9 @@ class Settings(BaseSettings, ConfigModel, LogConfigModel):
converted = int(value)
return converted, str(converted) != str(original_value)
elif expected_type is float:
if isinstance(value, float):
return value, str(value) != str(original_value)
if isinstance(value, (int, float)) and not isinstance(value, bool):
converted = float(value)
return converted, str(converted) != str(original_value)
if isinstance(value, str):
converted = float(value)
return converted, str(converted) != str(original_value)