Fix range of Google Generative AI temperature (#142513)

This commit is contained in:
tronikos 2025-04-08 11:46:09 -07:00 committed by Franck Nijhof
parent c540acf2bd
commit d9f91598a5
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -303,7 +303,7 @@ async def google_generative_ai_config_option_schema(
CONF_TEMPERATURE,
description={"suggested_value": options.get(CONF_TEMPERATURE)},
default=RECOMMENDED_TEMPERATURE,
): NumberSelector(NumberSelectorConfig(min=0, max=1, step=0.05)),
): NumberSelector(NumberSelectorConfig(min=0, max=2, step=0.05)),
vol.Optional(
CONF_TOP_P,
description={"suggested_value": options.get(CONF_TOP_P)},