Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update dependencies

Omar Khattabb51b4f89db8d
diff --git a/dspy/clients/lm.py b/dspy/clients/lm.py
index 43ba3a784..5e0969110 100644
--- a/dspy/clients/lm.py
+++ b/dspy/clients/lm.py
@@ -88,7 +88,7 @@ def _inspect_history(lm, n: int = 1):
print(msg['content'].strip())
print("\n")
- print(_red(f"Response:"))
+ print(_red("Response:"))
print(_green(outputs[0].strip()))
if len(outputs) > 1:
diff --git a/pyproject.toml b/pyproject.toml
index 67f7373ae..48ef1ab99 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -40,7 +40,8 @@ dependencies = [
"pydantic~=2.0",
"structlog",
"jinja2",
- "magicattr~=0.1.6"
+ "magicattr~=0.1.6",
+ "litellm"
]
[project.optional-dependencies]
@@ -129,6 +130,7 @@ llama-index = {version = "^0.10.30", optional = true}
snowflake-snowpark-python = { version = "*",optional=true, python = ">=3.9,<3.12" }
jinja2 = "^3.1.3"
magicattr = "^0.1.6"
+litellm = "^1.4.27"
diff --git a/requirements.txt b/requirements.txt
index 54ab22cea..64648d3ee 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -12,3 +12,4 @@ tqdm
ujson
httpx
magicattr~=0.1.6
+litellm