Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

fix(dsp): use the model declared in the constructor

Rémi Connesson9ead2e94c0af
diff --git a/dsp/modules/hf_client.py b/dsp/modules/hf_client.py
index 9fd7894f1..3b3331520 100644
--- a/dsp/modules/hf_client.py
+++ b/dsp/modules/hf_client.py
@@ -134,11 +134,12 @@ class HFClientVLLM(HFModel):
kwargs = {**self.kwargs, **kwargs}
payload = {
- "model": kwargs["model"],
+ "model": self.model,
"prompt": prompt,
"max_tokens": kwargs["max_tokens"],
"temperature": kwargs["temperature"],
}
+
# Round robin the urls.
url = self.urls.pop(0)