Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

[DX] Increase default timeout on Ollama from 15s to 120s

Connor Shortened10b7408515
diff --git a/dsp/modules/ollama.py b/dsp/modules/ollama.py
index 31bb7e10f..faa2c4100 100644
--- a/dsp/modules/ollama.py
+++ b/dsp/modules/ollama.py
@@ -33,7 +33,7 @@ class OllamaLocal(LM):
model: str = "llama2",
model_type: Literal["chat", "text"] = "text",
base_url: str = "http://localhost:11434",
- timeout_s: float = 15,
+ timeout_s: float = 120,
temperature: float = 0.0,
max_tokens: int = 150,
top_p: int = 1,