Skip to content

Commit

Permalink
fix additional_args and num_ctx examples also in zh docs (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandJAAI authored Jan 18, 2025
1 parent 6e1373a commit 06a8c54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/zh/guided_tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/zh/tutorials/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
)
```

Expand Down

0 comments on commit 06a8c54

Please sign in to comment.