mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(fix) testing import litellm on python 3.8
This commit is contained in:
parent
abe0ec601c
commit
ada6cdab3d
2 changed files with 10 additions and 5 deletions
|
@ -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:
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue