fix: embedding port 11437 → 11436 (correct system port)
Core Test / lint-and-test (push) Has been cancelled
Cross-Project Integration / integration (push) Has been cancelled

This commit is contained in:
Accusys
2026-11-17 13:26:56 +08:00
parent 6ba4ee1e06
commit 8f0315e588
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1099,7 +1099,7 @@ pub async fn test_embedding(
let embedder = Embedder::new("embeddinggemma-300m".to_string());
let url = std::env::var("MOMENTRY_EMBED_URL")
.unwrap_or_else(|_| "http://localhost:11437".to_string());
.unwrap_or_else(|_| "http://localhost:11436".to_string());
// Detect server type from URL port
let server_type = if url.contains("11437") {
+1 -1
View File
@@ -43,7 +43,7 @@ impl Embedder {
}
fn default_url() -> String {
std::env::var("MOMENTRY_EMBED_URL").unwrap_or_else(|_| "http://localhost:11437".to_string())
std::env::var("MOMENTRY_EMBED_URL").unwrap_or_else(|_| "http://localhost:11436".to_string())
}
pub async fn embed_text(&self, text: &str) -> Result<Vec<f32>> {