From cd03653f880ced1e4f5c24f4aee9728b862d4072 Mon Sep 17 00:00:00 2001 From: LI <2484593937@qq.com> Date: Sat, 24 Oct 2026 21:27:11 +0800 Subject: [PATCH] docs: correct Ollama embedding truncate default --- .../ollama/agent_framework_ollama/_embedding_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/ollama/agent_framework_ollama/_embedding_client.py b/python/packages/ollama/agent_framework_ollama/_embedding_client.py index bbefa11ba56..6fb4125a123 100644 --- a/python/packages/ollama/agent_framework_ollama/_embedding_client.py +++ b/python/packages/ollama/agent_framework_ollama/_embedding_client.py @@ -50,8 +50,8 @@ class OllamaEmbeddingOptions(EmbeddingGenerationOptions, total=False): truncate: bool """Whether to truncate input text that exceeds the model's context length. - When True, input that is too long will be silently truncated. - When False (default), the request will fail if input exceeds the context length. + When True (default), input that is too long will be silently truncated. + When False, the request will fail if input exceeds the context length. """ keep_alive: float | str