-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
"Instructor does not support multiple tool calls" Error When Using List[Model] #1111
Comments
As in this issue your client is wrognfully created. if you read closely at the docs you will notice that OpenAI client is being leveraged for For LLMs without tools mode, not overriding the default Hope this clarifies the issue. |
Thank you for the link. I was able to get my program to run. However, I noticed the program took 10 hours(!) on my MacBook Pro. Is there anything wrong? How can I speed it up? Should I open a new bug? Thank you for your help.
Here is the code I used: https://github.com/greenrobotllc/aliendevtool/blob/main/aliendevtool.py It creates a recursive and iterative version of different algorithms. |
This link worked for me. Thank you @ivanbelenky ! |
I'm running into this same error intermittently using "mistral-small:24b-instruct-2501-q4_K_M" /w ollama when it has None for the tools. This is my fix but it might not be for everyone and have side effects I didn't consider. might be worth thinking about as an OLLAMA_TOOLS cls.parse_ollama_tools? `
` |
Closing as part of repository maintenance for issues created before 2025. |
What Model are you using?
Llama3.2
Describe the bug
When trying to handle multiple files using a List in my model, I'm getting an error about multiple tool calls.
Code:
Error message:
Error: Instructor does not support multiple tool calls, use List[Model] instead
What's the correct way to structure a model to handle multiple files when the error suggests using List[Model]? I'm trying to get multiple files (with filename and content) in a single response, but getting the "multiple tool calls" error.
The error message suggests using List[Model], but I'm already using List[CodeFile]. Would appreciate guidance on the correct way to structure this.
To Reproduce
run this script
Expected behavior
It outputs some files.
The text was updated successfully, but these errors were encountered: