fix additional_args and num_ctx examples also in zh docs (#260)
This commit is contained in:
parent
6e1373a324
commit
06a8c546b9
|
@ -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)
|
||||
|
|
|
@ -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'}
|
||||
)
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue