-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Could not resolve authentication method. #1192
Comments
Please pull the latest version of GPT-Engineer and feedback if you are still having the same issue. |
I'm using version |
I assume you've installed using pip. Does running the latest development version resolve this for you? https://github.com/gpt-engineer-org/gpt-engineer#install-gpt-engineer |
@Zhou-Shilin actually, I think I see where the issue is. You need to set your |
@captivus My situation is a bit strange: I'm using the Claude model in the openai request format. I used the one-api project to make models from 25 providers available in openai's request format (including GPT, Claude, Gemini, Moonshot, Minimax, etc.). So I'm using the openai api key here and using an api base built on oneapi. I have tested it and am convinced that claude's model is indeed called properly via openai's request format, see the picture. |
May I ask if you have any clue about this? @gpt-engineer-org |
We'll need to check that in more detail. @captivus can you take a look at this, given new comments from @Zhou-Shilin, please? |
Policy and info
Expected Behavior
gpte works properly.
Current Behavior
I get an error after I try to run gpte. I am sure that I set the environment variables
OPENAI_API_KEY
andOPENAI_API_BASE
.Failure Information
Error message:
Error while improving the project: "Could not resolve authentication method. Expected either api_key or auth_token to be set. Or for one of the
X-Api-Keyor
Authorizationheaders to be explicitly omitted"
Failure Logs
debug_log_file.txt
System Information
The text was updated successfully, but these errors were encountered: