Skip to content

Commit

Permalink
Merge pull request #169 from inverted-ai/develop
Browse files Browse the repository at this point in the history
Release for 0.0.11.post1
  • Loading branch information
rf-ivtdai committed Dec 22, 2023
2 parents 3ac518f + 9f2ef28 commit 3b50af9
Show file tree
Hide file tree
Showing 6 changed files with 257 additions and 302 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11'] # 3.12 not supported yet due to build issues
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions invertedai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@
log_level = os.environ.get("IAI_LOG_LEVEL", "WARNING")
log_console = strtobool(os.environ.get("IAI_LOG_CONSOLE", "true"))
log_file = strtobool(os.environ.get("IAI_LOG_FILE", "false"))
api_key = os.environ.get("IAI_API_KEY", "")


logger = IAILogger(level=log_level, consoel=bool(log_console), log_file=bool(log_file))

session = Session()
if api_key:
session.add_apikey(api_key)
add_apikey = session.add_apikey
use_mock_api = session.use_mock_api

Expand Down
1 change: 0 additions & 1 deletion invertedai/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import requests
import asyncio
from deprecated import deprecated
import json
import logging
import os
Expand Down

0 comments on commit 3b50af9

Please sign in to comment.