From 870b4033ed3bbc238a83f6dbce6892e85b6f741f Mon Sep 17 00:00:00 2001 From: Yinghao Zhu Date: Tue, 2 Jan 2024 05:17:32 +0800 Subject: [PATCH] docs(ollama): Fix Documentation in `CallbackManager`, missing `])` (#15380) - **Description:** This PR corrects a documentation error in the `ollama` usage tutorial. Specifically, it fixes a missing `])` in the `CallbackManager()` example, ensuring that the code snippet is syntactically correct and can be successfully executed. - **Issue:** N/A - **Dependencies:** No additional dependencies are required for this change. - **Twitter handle:** My twitter is @yhzhu99 --- docs/docs/integrations/llms/ollama.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/integrations/llms/ollama.ipynb b/docs/docs/integrations/llms/ollama.ipynb index 96a7cb7e99..6b427cac17 100644 --- a/docs/docs/integrations/llms/ollama.ipynb +++ b/docs/docs/integrations/llms/ollama.ipynb @@ -72,8 +72,8 @@ "\n", "```\n", "llm = Ollama(\n", - " model=\"llama2\"\n", - " callback_manager=CallbackManager([StreamingStdOutCallbackHandler()\n", + " model=\"llama2\",\n", + " callback_manager=CallbackManager([StreamingStdOutCallbackHandler()]),\n", ")\n", "```" ]