Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Pin cached notebooks to 2.4.17 prior to deprecations (particularly yanking openai 0.28 support)

Omar Khattabc809b0d6f75f
diff --git a/examples/nli/scone/scone_with_MIPRO.ipynb b/examples/nli/scone/scone_with_MIPRO.ipynb
index 5f9668631..9778b2881 100644
--- a/examples/nli/scone/scone_with_MIPRO.ipynb
+++ b/examples/nli/scone/scone_with_MIPRO.ipynb
@@ -107,7 +107,7 @@
"import pkg_resources # Install the package if it's not installed\n",
"if \"dspy-ai\" not in {pkg.key for pkg in pkg_resources.working_set}:\n",
" !pip install -U pip\n",
- " !pip install dspy-ai\n",
+ " !pip install dspy-ai==2.4.17\n",
" !pip install openai~=1.12\n",
" !pip install -e $repo_path\n",
" !pip install --upgrade cloudpickle==3.0.0\n",
diff --git a/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb b/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb
index 9f7c5acd0..de46339d7 100644
--- a/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb
+++ b/examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb
@@ -107,7 +107,7 @@
"import pkg_resources # Install the package if it's not installed\n",
"if \"dspy-ai\" not in {pkg.key for pkg in pkg_resources.working_set}:\n",
" !pip install -U pip\n",
- " !pip install dspy-ai\n",
+ " !pip install dspy-ai==2.4.17\n",
" !pip install openai~=1.12\n",
" !pip install -e $repo_path\n",
" !pip install --upgrade cloudpickle==3.0.0\n",
diff --git a/examples/quiz/quiz_assertions.ipynb b/examples/quiz/quiz_assertions.ipynb
index b92263064..93977702f 100644
--- a/examples/quiz/quiz_assertions.ipynb
+++ b/examples/quiz/quiz_assertions.ipynb
@@ -63,7 +63,7 @@
"import pkg_resources # Install the package if it's not installed\n",
"if \"dspy-ai\" not in {pkg.key for pkg in pkg_resources.working_set}:\n",
" !pip install -U pip\n",
- " !pip install dspy-ai\n",
+ " !pip install dspy-ai==2.4.17\n",
" !pip install openai~=0.28.1\n",
" !pip install -e $repo_path\n",
"\n",
diff --git a/examples/tweets/tweets_assertions.ipynb b/examples/tweets/tweets_assertions.ipynb
index bde086aeb..6cefadf98 100644
--- a/examples/tweets/tweets_assertions.ipynb
+++ b/examples/tweets/tweets_assertions.ipynb
@@ -63,7 +63,7 @@
"import pkg_resources # Install the package if it's not installed\n",
"if \"dspy-ai\" not in {pkg.key for pkg in pkg_resources.working_set}:\n",
" !pip install -U pip\n",
- " !pip install dspy-ai\n",
+ " !pip install dspy-ai==2.4.17\n",
" !pip install openai~=0.28.1\n",
" !pip install -e $repo_path\n",
"\n",
diff --git a/intro.ipynb b/intro.ipynb
index a2aae64e1..0a5ff0087 100644
--- a/intro.ipynb
+++ b/intro.ipynb
@@ -61,7 +61,7 @@
"import pkg_resources # Install the package if it's not installed\n",
"if \"dspy-ai\" not in {pkg.key for pkg in pkg_resources.working_set}:\n",
" !pip install -U pip\n",
- " !pip install dspy-ai\n",
+ " !pip install dspy-ai==2.4.17\n",
" !pip install openai~=0.28.1\n",
" # !pip install -e $repo_path\n",
"\n",