(fix) testing import litellm on python 3.8

This commit is contained in:
ishaan-jaff 2024-03-09 18:18:18 -08:00
parent abe0ec601c
commit ada6cdab3d
2 changed files with 10 additions and 5 deletions

View file

@ -13,11 +13,14 @@ jobs:
name: Install Dependencies name: Install Dependencies
command: | command: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install -r .circleci/requirements.txt pip install python-dotenv
pip install pytest
pip install tiktoken
pip install aiohttp
pip install click
pip install jinja2
pip install tokenizers
pip install openai pip install openai
pip install prisma
pip install "httpx==0.24.1"
- run: - run:
name: Check if litellm dir was updated or if pyproject.toml was modified name: Check if litellm dir was updated or if pyproject.toml was modified
- run: - run:

View file

@ -10,6 +10,8 @@ sys.path.insert(
def test_using_litellm(): def test_using_litellm():
try: try:
import litellm import litellm
print("litellm imported successfully")
except Exception as e: except Exception as e:
pytest.fail( pytest.fail(
f"Error occurred: {e}. Installing litellm on python3.8 failed please retry" f"Error occurred: {e}. Installing litellm on python3.8 failed please retry"