Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(embeddings): use raw custom endpoint for key requirement check

Steven Enamakelba667ae8e93c
diff --git a/src/openhuman/inference/embeddings/factory.rs b/src/openhuman/inference/embeddings/factory.rs
index bbd266866b..a58c671156 100644
--- a/src/openhuman/inference/embeddings/factory.rs
+++ b/src/openhuman/inference/embeddings/factory.rs
@@ -450,7 +450,7 @@ pub fn default_embedding_provider_with_config(config: &Config) -> Arc<dyn Embedd
None => Ok(None),
};
let requires_key = matches!(provider_slug, "voyage" | "openai" | "cohere")
- || (provider_slug == "custom" && custom_endpoint.is_none());
+ || (provider_slug == "custom" && raw_custom_endpoint.is_none());
if let Ok(custom_endpoint) = custom_endpoint {
match create_embedding_provider_with_config(
config,