From c2d3940298a549da038b7d7b7cd114a5805d2b0d Mon Sep 17 00:00:00 2001 From: vuonghoainam Date: Thu, 19 Oct 2023 16:15:35 -0700 Subject: [PATCH] fix: Use IP instead of localhost to improve performance --- plugins/inference-plugin/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inference-plugin/index.ts b/plugins/inference-plugin/index.ts index 287c52824..59b59be3b 100644 --- a/plugins/inference-plugin/index.ts +++ b/plugins/inference-plugin/index.ts @@ -1,7 +1,7 @@ import { EventName, InferenceService, NewMessageRequest, PluginService, core, events, store } from "@janhq/core"; import { Observable } from "rxjs"; -const inferenceUrl = "http://localhost:3928/llama/chat_completion"; +const inferenceUrl = "http://127.0.0.1:3928/llama/chat_completion"; const initModel = async (product) => core.invokePluginFunc(MODULE_PATH, "initModel", product);