Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug]: Could not resolve authentication method #1090

Open
yuesam opened this issue Aug 21, 2024 · 2 comments
Open

[Bug]: Could not resolve authentication method #1090

yuesam opened this issue Aug 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@yuesam
Copy link

yuesam commented Aug 21, 2024

Version

VisualStudio Code extension

Operating System

Windows 11

What happened?

I added my OpenAI api key only, and then tried to create a new app. Here's the error I got.

self._validate_headers(headers_dict, custom_headers)
File "...\pythagora\gpt-pilot\venv\Lib\site-packages\anthropic_client.py", line 458, in _validate_headers
raise TypeError(
TypeError: "Could not resolve authentication method. Expected either api_key or auth_token to be set. Or for one of the X-Api-Key or Authorization headers to be explicitly omitted"

@yuesam yuesam added the bug Something isn't working label Aug 21, 2024
@yamasammy
Copy link

Hello everyone experiencing this error. This issue arises when the Anthropic key is not configured properly. As indicated in the config.json file, some agents are set up with the Anthropic provider instead of OpenAI, which results in this error. Just replace antropic agent by open ai agent (changing provider + model)

@roitmaster
Copy link

i have this error when using llmlite

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants