diff --git a/crates/goose-cli/src/commands/configure.rs b/crates/goose-cli/src/commands/configure.rs index 24f786b9d..ed02642c3 100644 --- a/crates/goose-cli/src/commands/configure.rs +++ b/crates/goose-cli/src/commands/configure.rs @@ -12,7 +12,7 @@ use std::error::Error; pub async fn handle_configure() -> Result<(), Box> { let config = Config::global(); - if !config.exists() { + if (!config.exists()) { // First time setup flow println!(); println!( diff --git a/crates/goose/src/providers/groq.rs b/crates/goose/src/providers/groq.rs index f0c3ace44..7774b3454 100644 --- a/crates/goose/src/providers/groq.rs +++ b/crates/goose/src/providers/groq.rs @@ -54,7 +54,7 @@ impl GroqProvider { }) } - async fn post(&self, payload: Value) -> anyhow::Result { + async fn post(&self, payload: Value) -> Result { let base_url = Url::parse(&self.host) .map_err(|e| ProviderError::RequestFailed(format!("Invalid base URL: {e}")))?; let url = base_url.join("openai/v1/chat/completions").map_err(|e| { @@ -127,7 +127,7 @@ impl Provider for GroqProvider { system: &str, messages: &[Message], tools: &[Tool], - ) -> anyhow::Result<(Message, ProviderUsage), ProviderError> { + ) -> Result<(Message, ProviderUsage), ProviderError> { let payload = create_request( &self.model, system,