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

Unexpected keyword "Tools" Issue #28

Closed
vijenderyadav944 opened this issue Jul 1, 2024 · 13 comments
Closed

Unexpected keyword "Tools" Issue #28

vijenderyadav944 opened this issue Jul 1, 2024 · 13 comments

Comments

@vijenderyadav944
Copy link

I am getting the same issue each time I run it.
It keeps on showing :-
Error calling Claude API: Messages.create() got an unexpected keyword argument 'tools'
I'm sorry, there was an error communicating with the AI. Please try again.

@Gooseware
Copy link

Also having the same issue

@superhero75
Copy link

Me too. Exactly the same problem.

@maitiSoutrik
Copy link

Hi,
Can we get a fix for this ?

@Doriandarko
Copy link
Owner

Doriandarko commented Jul 2, 2024 via email

@maitiSoutrik
Copy link

Hi @Doriandarko ,
Thanks for replying.
I am using Ubuntu 18.04 in WSL. I did try it but keep getting the same thing :

 Welcome to the Claude-3.5-Sonnet Engineer Chat with Image Support!
Type 'exit' to end the conversation.
Type 'image' to include an image in your message.
Type 'automode [number]' to enter Autonomous mode with a specific number of iterations.
While in automode, press Ctrl+C at any time to exit the automode to return to regular chat.

You: hi
Error calling Claude API: create() got an unexpected keyword argument 'tools'
I'm sorry, there was an error communicating with the AI. Please try again. 

@vijenderyadav944
Copy link
Author

I guess it's because the File is using claude 3.5 sonnet and It is actually a paid version. So I guess we need the credits to run.
Is anyone of you having premium also getting the same issue?

@vijenderyadav944
Copy link
Author

did you update to the latest version of the anthropic package? I cant
reproduce this error

On Tue, Jul 2, 2024 at 2:25 PM Soutrik Maiti @.***>
wrote:

Hi,
Can we get a fix for this ?


Reply to this email directly, view it on GitHub
#28 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJQPTGYAHMDCSZ7CCK7S3LZKLWBVAVCNFSM6AAAAABKFAORA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBUGAYTQNBYGY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--


Pietro Schirano
Founder | EverArt http://everart.ai

Yes, I Am using the latest version

@EnlightCreatives
Copy link

I'm having same issue: Error calling Claude API: Messages.create() got an unexpected keyword argument 'tools'
I'm sorry, there was an error communicating with the AI. Please try again.

@EnlightCreatives
Copy link

I was able to fix with: pip install --upgrade anthropic

@Ephaistophedes
Copy link

Hi, I'm having the same issue, I have API credits, and I ran the pip install --upgrade anthropic and it says "Requirements already satisfied".

Commenting out the lines tools=tools and tool_choice={"type": "auto"} in the def chat_with_claude() makes it possible to chat, but of course it can't access the tools therefore can't actually do anything.

Any suggestions? Thanks in advance.

@Doriandarko
Copy link
Owner

this is fixed

@Kadajett
Copy link

Kadajett commented Jul 7, 2024

I am still seeing this issue in wsl, after making sure to upgrade everything. I just cloned and installed today, so I doubt anything is out of date. I could be wrong though!
Any ideas?

@jasonkneen
Copy link

getting this still

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

No branches or pull requests

9 participants