From 4d43209b409d2fb4008474a2e3cb279b568daf19 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 29 May 2024 18:08:55 +0800 Subject: [PATCH] chore(core): use 127.0.0.1 to access local llama-server (#2281) --- crates/llama-cpp-server/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/llama-cpp-server/src/lib.rs b/crates/llama-cpp-server/src/lib.rs index 63229f7a3cc8..fe0febc849a1 100644 --- a/crates/llama-cpp-server/src/lib.rs +++ b/crates/llama-cpp-server/src/lib.rs @@ -13,7 +13,7 @@ use tabby_common::{ use tabby_inference::{CompletionOptions, CompletionStream, Embedding}; fn api_endpoint(port: u16) -> String { - format!("http://localhost:{port}") + format!("http://127.0.0.1:{port}") } struct EmbeddingServer {