From 05b7b3ac5e9b76d9b511f27bb79cd0340f95ead1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Paul=20Pe=C3=B1aranda=20Rojas?= <paul@kristianpaul.org> Date: Tue, 9 Jan 2024 18:15:12 -0500 Subject: [PATCH] Especify timeout for ollama example (#9942) * Especify timeout for ollama example * fix ollama example linting --- docs/examples/llm/ollama.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/examples/llm/ollama.ipynb b/docs/examples/llm/ollama.ipynb index 9c55eda830..1e6c63d5af 100644 --- a/docs/examples/llm/ollama.ipynb +++ b/docs/examples/llm/ollama.ipynb @@ -29,6 +29,7 @@ "When the Ollama app is running on your local machine:\n", "- All of your local models are automatically served on localhost:11434\n", "- Select your model when setting llm = Ollama(..., model=\"<model family>:<version>\")\n", + "- Increase defaullt timeout (30 seconds) if needed setting Ollama(..., request_timeout=300.0)\n", "- If you set llm = Ollama(..., model=\"<model family\") without a version it will simply look for latest" ] }, @@ -67,7 +68,7 @@ "metadata": {}, "outputs": [], "source": [ - "llm = Ollama(model=\"llama2\")" + "llm = Ollama(model=\"llama2\", request_timeout=30.0)" ] }, { -- GitLab