diff --git a/Cargo.lock b/Cargo.lock index 06f097e0..ccf6948a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -105,7 +105,7 @@ dependencies = [ [[package]] name = "edgee" -version = "2.0.6" +version = "2.0.7" dependencies = [ "bytes", "futures", diff --git a/Cargo.toml b/Cargo.toml index e94db1b5..e351fe91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "edgee" -version = "2.0.6" +version = "2.0.7" edition = "2021" authors = ["Edgee "] license = "Apache-2.0" diff --git a/src/models.rs b/src/models.rs index 0002fc3d..6d7d2466 100644 --- a/src/models.rs +++ b/src/models.rs @@ -6,7 +6,7 @@ use std::collections::HashMap; pub struct EdgeeConfig { /// API key for authentication pub api_key: String, - /// Base URL for the API (default: ) + /// Base URL for the API (default: ) pub base_url: String, } @@ -15,7 +15,7 @@ impl EdgeeConfig { pub fn new(api_key: impl Into) -> Self { Self { api_key: api_key.into(), - base_url: "https://api.edgee.ai".to_string(), + base_url: "https://edgee.io".to_string(), } } @@ -31,7 +31,7 @@ impl EdgeeConfig { let api_key = std::env::var("EDGEE_API_KEY").map_err(|_| crate::Error::MissingApiKey)?; let base_url = - std::env::var("EDGEE_BASE_URL").unwrap_or_else(|_| "https://api.edgee.ai".to_string()); + std::env::var("EDGEE_BASE_URL").unwrap_or_else(|_| "https://edgee.io".to_string()); Ok(Self { api_key, base_url }) }