mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
fix: converter err
This commit is contained in:
parent
404b7c0393
commit
21ca10cecb
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue