-
Notifications
You must be signed in to change notification settings - Fork 397
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
Can't save the groq api key #937
Comments
could you check whether you have the invalid key? |
Yes @Howe829 I have the same question. Do you know if this was a valid key entered? Could you try the reset provider option from the menu on the top right and re-attempt entry of the key? |
@alexhancock Using "reset provider" will just open the providers window. It will not reset them. How can I correct the previously entered wrong settings. |
Using Claude, mine says:
API key is new anthropic console shows it's never been used. I have sufficient funds in the account too. My other API key is working fine for Cursor. |
Fixes block#937 Update the `post` method in `crates/goose/src/providers/groq.rs` to handle the API request correctly and return a successful response if the API key is valid. * Change the return type of the `post` method to `Result<Value, ProviderError>` and add error handling for invalid API key or insufficient permissions. * Change the return type of the `send_message` method to `Result<(Message, ProviderUsage), ProviderError>`. Update the `configure_provider_dialog` function in `crates/goose-cli/src/commands/configure.rs` to handle the provider configuration process correctly. * Change the condition to check if the configuration exists using parentheses. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/block/goose/issues/937?shareId=XXXX-XXXX-XXXX-XXXX).
Describe the bug
Get 403 error after configure the groq provider
The text was updated successfully, but these errors were encountered: