fix: Update litellm dependency to >=1.65.1 to resolve httpx version conflicts

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-04-03 17:30:50 +00:00
parent efe27bd570
commit aeb89605e0
2 changed files with 49 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ dependencies = [
# Core Dependencies
"pydantic>=2.4.2",
"openai>=1.13.3",
"litellm==1.60.2",
"litellm>=1.65.1",
"instructor>=1.3.3",
# Text Processing
"pdfplumber>=0.11.4",

View File

@@ -0,0 +1,48 @@
import importlib.util
import sys
import pytest
def test_httpx_litellm_compatibility():
"""Test that litellm is compatible with the latest httpx"""
import httpx
import litellm
assert hasattr(httpx, "__version__")
print(f"Using httpx version: {httpx.__version__}")
print("Successfully imported litellm")
def test_exa_py_compatibility():
"""Test that exa-py can be imported alongside litellm"""
if importlib.util.find_spec("exa") is None:
pytest.skip("exa-py not installed")
import exa
import litellm
import httpx
assert hasattr(exa, "__version__")
assert hasattr(httpx, "__version__")
print(f"Using exa-py version: {exa.__version__}")
print("Successfully imported litellm")
print(f"Using httpx version: {httpx.__version__}")
def test_google_genai_compatibility():
"""Test that google-genai can be imported alongside litellm"""
if importlib.util.find_spec("google.generativeai") is None:
pytest.skip("google-genai not installed")
from google import generativeai
import litellm
import httpx
assert hasattr(generativeai, "version")
assert hasattr(httpx, "__version__")
print(f"Using google-genai version: {generativeai.version}")
print("Successfully imported litellm")
print(f"Using httpx version: {httpx.__version__}")