From 06a8c546b91f58b4beebd8684be35b246d1e13c0 Mon Sep 17 00:00:00 2001 From: RolandJAAI <38503289+RolandJAAI@users.noreply.github.com> Date: Sat, 18 Jan 2025 19:09:50 +0100 Subject: [PATCH] fix additional_args and num_ctx examples also in zh docs (#260) --- docs/source/zh/guided_tour.md | 1 + docs/source/zh/tutorials/tools.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/zh/guided_tour.md b/docs/source/zh/guided_tour.md index 9816a4f..d8a30da 100644 --- a/docs/source/zh/guided_tour.md +++ b/docs/source/zh/guided_tour.md @@ -97,6 +97,7 @@ model = LiteLLMModel( model_id="ollama_chat/llama3.2", # 这个模型对于 agent 行为来说有点弱 api_base="http://localhost:11434", # 如果需要可以替换为远程 open-ai 兼容服务器 api_key="YOUR_API_KEY" # 如果需要可以替换为 API key + num_ctx=8192 # https://huggingface.co/spaces/NyxKrage/LLM-Model-VRAM-Calculator ) agent = CodeAgent(tools=[], model=model, add_base_tools=True) diff --git a/docs/source/zh/tutorials/tools.md b/docs/source/zh/tutorials/tools.md index a5d15eb..e62f6b6 100644 --- a/docs/source/zh/tutorials/tools.md +++ b/docs/source/zh/tutorials/tools.md @@ -139,7 +139,7 @@ model = HfApiModel("Qwen/Qwen2.5-Coder-32B-Instruct") agent = CodeAgent(tools=[image_generation_tool], model=model) agent.run( - "Improve this prompt, then generate an image of it.", prompt='A rabbit wearing a space suit' + "Improve this prompt, then generate an image of it.", additional_args={'user_prompt': 'A rabbit wearing a space suit'} ) ```