The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(embed): allow empty api key to bypass https check on non-https endpoints
Steven Enamakele496622c5256
diff --git a/src/embed/agent.rs b/src/embed/agent.rsindex 2854050cb2..ad7631cdcd 100644--- a/src/embed/agent.rs+++ b/src/embed/agent.rs@@ -307,7 +307,12 @@ impl Turn<'_> {// endpoint; a route without a credential is allowed through (some// embedders run a local, unauthenticated OpenAI-compatible server over// plain http, and there is nothing sensitive on the wire for them).- if self.request.api_key.as_deref().is_some_and(|k| !k.is_empty()) {+ if self+ .request+ .api_key+ .as_deref()+ .is_some_and(|k| !k.is_empty())+ {if let Some(endpoint) = self.request.inference_url.as_deref() {if !is_https_endpoint(endpoint) {return Err(crate::embed::error::CoreError::InsecureRoute {