From 67282a2b9ac364e648af4395e7b743a6a43264b0 Mon Sep 17 00:00:00 2001 From: Maria Mercado Date: Wed, 14 Aug 2024 10:29:04 -0700 Subject: [PATCH] fix: format error handling --- ai/providers/openai.py | 1 + state_store/get_user_state.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ai/providers/openai.py b/ai/providers/openai.py index cf01e21..a69f27b 100644 --- a/ai/providers/openai.py +++ b/ai/providers/openai.py @@ -6,6 +6,7 @@ logging.basicConfig(level=logging.ERROR) logger = logging.getLogger(__name__) + class OpenAI_API(BaseAPIProvider): MODELS = { "gpt-4-turbo": {"name": "GPT-4 Turbo", "provider": "OpenAI", "max_tokens": 4096}, diff --git a/state_store/get_user_state.py b/state_store/get_user_state.py index f9eb370..33c4d53 100644 --- a/state_store/get_user_state.py +++ b/state_store/get_user_state.py @@ -6,6 +6,7 @@ logging.basicConfig(level=logging.ERROR) logger = logging.getLogger(__name__) + def get_user_state(user_id: str, is_app_home: bool): filepath = f"./data/{user_id}" if not is_app_home and not os.path.exists(filepath):