fix config validation

This commit is contained in:
Cyberes 2024-04-07 22:57:24 -06:00
parent 2d1bfd31e3
commit f311cb31da
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ config_scheme = bison.Scheme(
bison.Option('api_type', field_type=str, choices=['openai', 'anth'], required=True), bison.Option('api_type', field_type=str, choices=['openai', 'anth'], required=True),
bison.Option('model', field_type=str, required=True), bison.Option('model', field_type=str, required=True),
bison.Option('max_tokens', field_type=int, default=0), bison.Option('max_tokens', field_type=int, default=0),
bison.Option('temperature', field_type=float, default=0.5), bison.Option('temperature', field_type=[int, float], default=0.5),
bison.ListOption('allowed_to_chat', member_type=str, default=[]), bison.ListOption('allowed_to_chat', member_type=str, default=[]),
bison.ListOption('allowed_to_thread', member_type=str, default=[]), bison.ListOption('allowed_to_thread', member_type=str, default=[]),
bison.ListOption('allowed_to_invite', member_type=str, default=[]), bison.ListOption('allowed_to_invite', member_type=str, default=[]),