-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
In the README.md file, this is stated in the example code:
# Step 3: Create an agent. Here we use the `Assistant` agent as an example, which is capable of using tools and reading files.
system_instruction = '''After receiving the user's request, you should:
- first draw an image and obtain the image url,
- then run code `request.get(image_url)` to download the image,
- and finally select an image operation from the given document to process the image.
Please show the image using `plt.show()`.'''
tools = ['my_image_gen', 'code_interpreter'] # `code_interpreter` is a built-in tool for executing code. For configuration details, please refer to the FAQ.
files = ['./examples/resource/doc.pdf'] # Give the bot a PDF file to read.
bot = Assistant(llm=llm_cfg,
system_message=system_instruction,
function_list=tools,
files=files)
........Switch request.get(image_url) to requests.get(image_url), although Qwen can handle this, but better to be accurate
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels