Skip to content

Commit f95305e

Browse files
author
OpenClaw
committed
fix: correct request.get to requests.get in README example
The example code incorrectly uses request.get() instead of requests.get(). While Qwen can infer the correct module, it's better to be explicit for human readability. Closes #825
1 parent f3a09a8 commit f95305e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ llm_cfg = {
144144
# Step 3: Create an agent. Here we use the `Assistant` agent as an example, which is capable of using tools and reading files.
145145
system_instruction = '''After receiving the user's request, you should:
146146
- first draw an image and obtain the image url,
147-
- then run code `request.get(image_url)` to download the image,
147+
- then run code `requests.get(image_url)` to download the image,
148148
- and finally select an image operation from the given document to process the image.
149149
Please show the image using `plt.show()`.'''
150150
tools = ['my_image_gen', 'code_interpreter'] # `code_interpreter` is a built-in tool for executing code. For configuration details, please refer to the FAQ.

0 commit comments

Comments
 (0)