From f311cb31daa74542cf87d5915e0d0ba7d5405c21 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sun, 7 Apr 2024 22:57:24 -0600 Subject: [PATCH] fix config validation --- matrix_gpt/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_gpt/config.py b/matrix_gpt/config.py index ffe6336..3dab65b 100644 --- a/matrix_gpt/config.py +++ b/matrix_gpt/config.py @@ -25,7 +25,7 @@ config_scheme = bison.Scheme( bison.Option('api_type', field_type=str, choices=['openai', 'anth'], required=True), bison.Option('model', field_type=str, required=True), 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_thread', member_type=str, default=[]), bison.ListOption('allowed_to_invite', member_type=str, default=[]),