fix: embedding port 全部改為 11436(plist + svc_def + server_type + test-embedding)

This commit is contained in:
Accusys
2026-11-17 13:31:20 +08:00
parent 8f0315e588
commit 5056c20667
5 changed files with 184 additions and 260 deletions
+4 -4
View File
@@ -60,7 +60,7 @@ fn svc_def(name: &str) -> Option<(&'static str, u16, Option<&'static str>)> {
"markbase" | "mb" => ("markbase", 11438, Some("com.momentry.markbase")),
"mbe" | "markbaseengine" | "vlm" => ("mbe", 8082, Some("com.momentry.llm")), // MBE = markbaseengine service; spawns VLM llama-server (8082)
"chat" | "llama" => ("chat", 8080, Some("com.momentry.chat-llamacpp")), // Chat llama-server instance (8080)
"embedding" => ("embedding", 11437, Some("com.momentry.embedding-gguf")),
"embedding" => ("embedding", 11436, Some("com.momentry.embedding-gguf")),
"proxy" => ("proxy", 8888, Some("com.momentry.proxy")),
"worker" => ("worker", 0, Some("com.momentry.worker")),
"postgres" | "postgresql" | "pg" => ("postgres", 5432, Some("com.momentry.postgresql")),
@@ -1102,10 +1102,10 @@ pub async fn test_embedding(
.unwrap_or_else(|_| "http://localhost:11436".to_string());
// Detect server type from URL port
let server_type = if url.contains("11437") {
let server_type = if url.contains("11436") {
"llama.cpp GGUF Q8"
} else if url.contains("11436") {
"Python Flask (safetensors fp32)"
} else if url.contains("11437") {
"llama.cpp GGUF Q8 (alt)"
} else {
"unknown"
};