Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information