fix: converter err

This commit is contained in:
Pursue Wind 2025-07-17 11:23:49 +08:00 committed by GitHub
parent 404b7c0393
commit 21ca10cecb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ class LLMProvider(LLMProviderBase):
"temperature": (0.7, lambda x: round(float(x), 1)), "temperature": (0.7, lambda x: round(float(x), 1)),
"top_p": (1.0, lambda x: round(float(x), 1)), "top_p": (1.0, lambda x: round(float(x), 1)),
"frequency_penalty": (0, lambda x: round(float(x), 1)), "frequency_penalty": (0, lambda x: round(float(x), 1)),
"enable_thinking": (False, bool), "enable_thinking": (False, lambda x: x.lower() == 'true'),
} }
for param, (default, converter) in param_defaults.items(): for param, (default, converter) in param_defaults.items():