Skip to content

Commit

Permalink
fix: format error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
srtaalej committed Aug 14, 2024
1 parent 1a2cea7 commit 67282a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ai/providers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
1 change: 1 addition & 0 deletions state_store/get_user_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 67282a2

Please sign in to comment.