From 33afbdb17e69e96f7f64b0e31e8ecc672b21dc7a Mon Sep 17 00:00:00 2001 From: zxstty Date: Wed, 24 Sep 2025 14:52:47 +0800 Subject: [PATCH] =?UTF-8?q?ollama=E7=9A=84func=E5=8E=BB=E9=99=A4timeout?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/llm/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/llm/function.py b/apps/llm/function.py index 542d00e5..63d8e5cf 100644 --- a/apps/llm/function.py +++ b/apps/llm/function.py @@ -42,10 +42,10 @@ class FunctionLLM: self._params = { "model": self._config.model, "messages": [], - "timeout": 300, "extra_body": {"enable_thinking": False} } - + if self._config.backend != "ollama": + self._params["timeout"] = 300 if self._config.backend == "ollama": import ollama -- Gitee