This is an automated email from the ASF dual-hosted git repository. xtsong pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/flink-agents.git
commit 362ecd449e3fb7cbc4200464abcfd8739271bdb8 Author: WenjinXie <[email protected]> AuthorDate: Fri Oct 31 11:48:08 2025 +0800 [hotfix] Increase request timeout in ollama test to avoid read timeout exception. --- .../integrations/chat_models/tests/test_ollama_chat_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/flink_agents/integrations/chat_models/tests/test_ollama_chat_model.py b/python/flink_agents/integrations/chat_models/tests/test_ollama_chat_model.py index b230a3b..653fb76 100644 --- a/python/flink_agents/integrations/chat_models/tests/test_ollama_chat_model.py +++ b/python/flink_agents/integrations/chat_models/tests/test_ollama_chat_model.py @@ -60,7 +60,7 @@ except Exception: client is None, reason="Ollama client is not available or test model is missing" ) def test_ollama_chat() -> None: # noqa :D103 - server = OllamaChatModelConnection(name="ollama") + server = OllamaChatModelConnection(name="ollama", request_timeout=120.0) response = server.chat( [ChatMessage(role=MessageRole.USER, content="Hello!")], model=test_model ) @@ -94,7 +94,7 @@ def get_tool(name: str, type: ResourceType) -> FunctionTool: # noqa :D103 client is None, reason="Ollama client is not available or test model is missing" ) def test_ollama_chat_with_tools() -> None: # noqa :D103 - connection = OllamaChatModelConnection(name="ollama") + connection = OllamaChatModelConnection(name="ollama", request_timeout=120.0) def get_resource(name: str, type: ResourceType) -> Resource: if type == ResourceType.TOOL:
