From 66cf7af462cdf823e419b9fa0bbc837015720a25 Mon Sep 17 00:00:00 2001 From: odrec Date: Wed, 30 Oct 2024 13:31:56 +0100 Subject: [PATCH] Change in environmental variable --- src/ai_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai_client.py b/src/ai_client.py index a523755..699f546 100644 --- a/src/ai_client.py +++ b/src/ai_client.py @@ -57,7 +57,7 @@ def set_accessible_models(): Get accessible models for the current user """ # Load accessible user models from environment variables - default_models = json.loads(os.environ['OPENAI_DEFAULT_MODEL']) + default_models = json.loads(os.environ['OPENAI_MODELS']) default_extra_models = json.loads(os.environ['OPENAI_MODEL_EXTRA']) if 'accessible_models' not in session_state and {'USER_ROLES', 'MODELS_PER_ROLE'} <= os.environ.keys(): user_roles = json.loads(os.environ['USER_ROLES'])