Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs Bug - fix tool example with additional args #228

Merged

Conversation

RolandJAAI
Copy link
Contributor

Love your work! I am going to fix a couple of bugs in the docs to get going, here is the first one 🤗

The current example for generating an image with an improved prompt fails with:
"TypeError: MultiStepAgent.run() got an unexpected keyword argument 'prompt'" (both in 1.3.0 and the version before)

Seems like the way to pass additional args was changed to use a dict with the name additional_args. Looked it up in the code, changed it accordingly, tested it, works.
I have also included a hint to the additional_args option in the text and renamed 'prompt' to 'user_prompt' to make the example easier to understand.

@aymeric-roucher aymeric-roucher merged commit a1d8f3c into huggingface:main Jan 16, 2025
@aymeric-roucher
Copy link
Collaborator

Thank you @RolandJAAI !

@RolandJAAI RolandJAAI deleted the fix_docs_additional_args branch January 17, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants