Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

refactor(dspy): removed template_id and params in all_kwargs

Anindyadeep0a128a43baea
diff --git a/dsp/modules/premai.py b/dsp/modules/premai.py
index 3ab8366ce..35ebafa03 100644
--- a/dsp/modules/premai.py
+++ b/dsp/modules/premai.py
@@ -143,6 +143,8 @@ class PremAI(LM):
"params": params,
},
]
+ all_kwargs.pop("template_id")
+ all_kwargs.pop("params")
response = self.client.chat.completions.create(
project_id=self.project_id,