fix: embedding port 11437 → 11436 (correct system port)
This commit is contained in:
@@ -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") {
|
||||
|
||||
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user