You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ llm_cfg = {
144
144
# Step 3: Create an agent. Here we use the `Assistant` agent as an example, which is capable of using tools and reading files.
145
145
system_instruction ='''After receiving the user's request, you should:
146
146
- 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,
148
148
- and finally select an image operation from the given document to process the image.
149
149
Please show the image using `plt.show()`.'''
150
150
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