-
Notifications
You must be signed in to change notification settings - Fork 15
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
Anthropic refusing to work after update #206
Comments
Hi @cristian-tapia - I tested this morning and it worked, can you double-check your api key, or send a copy of your workflow for me to reproduce? |
Hi, thanks for your quick reply. I'm attaching screenshots of two simple workflows. Thank you @shhlife |
Hi @shhlife. Happy new year! Yes the API key is there and I even tried creating a new one, although the previous one is still working with no issues with the previous version of Griptape. |
I can't seem to re-create the issue - can you show me the terminal where it's running into issues? |
That's so strange - the only thing I can think of is that the API key isn't correct - can you go into the settings, click in the Anthropic API Key area, do ctrl+a, ctrl+c and then go to a text file & do ctrl+v to paste it & make sure it's exactly what your api key should be? |
Hi @shhlife I did that, and they are identical. I tried updating the comfy nodes again and unfortunately the problem persists. All the other nodes (Open AI, Black Forest) work fine with their respective API keys. |
Okay, another thing to check.. in the terminal you're using to launch comfyui, can you check and see if you have an Anthropic API key set?
if you have one that doesn't match what's in comfyUI, that could be the issue.. you can remove it:
and try again |
Hi @shhlife. I have checked in my terminal, and there is no environment variable named ANTHROPIC_API_KEY. The key is configured exclusively in the Griptape preferences within the ComfyUI GUI. Thanks for your continued help in resolving this issue! |
Okay, we're going to go hard core here. :) can you create this python file and save it as
then save your ANTHROPIC_API_KEY in a file called if you run this script with the python you're using for comfyUI, it should show a response from Anthropic. for example, if you're using the standalone version, you should be able to do something like:
|
Hi @shhlife. It worked that way: (temp_env) D:\ComfyFull\ComfyUI\temp_env\Scripts>python anthropic_test.py What should I do next? Thanks! |
Hi again @shhlife. I just noticed that the first call to Anthropic in my workflow works perfectly. However, the issue arises when I connect the "create agent" node to the "run image description" node. At that point, I encounter the API key error (which didn't happen before the upgrade) |
Heya! sorry it's been a few days, was heads down getting some work done. Interesting that it's working in your first workflow - but not in the Image Description node. Will check that outside of ComfyUI and see where the bug is |
If you update to the latest, are you still seeing the same issues? |
please try again - re-open if this still isn't working. Tahnk you! |
Hey I'm just facing this same issues, my API is correct because it can run through the first agent and I'm getting an output but then the next agents are not working and i'm getting this same output: "Could not resolve authentication method. Expected either api_key or auth_token to be set. Or for one of the Is it something to do with a queueing system with claude cause using openai didnt give me such issues? Please let me know how I could resolve this, cheers:) |
Ah! yes, I just fixed this last night - I discovered that the API key wasn't being saved in the environment properly - so the first agent would run, but then the second wasn't grabbing the key. If you update your Griptape nodes, can you try it again? |
Ahhh awesome thank you very much for the quick response, it works |
Fantastic! So sorry about the bug - it was a tricky one to solve, but I'm glad it works. :) |
Hi. After updating to the lastest version (30/12/2024) the Anthropic node is giving me this error:
TypeError: "Could not resolve authentication method. Expected either api_key or auth_token to be set. Or for one of the
X-Api-Key
orAuthorization
headers to be explicitly omitted"The API key is correctly configured inside the Griptape settings. Open AI is working without issues. Any hint?
Thank you.
The text was updated successfully, but these errors were encountered: