fix: Use IP instead of localhost to improve performance

This commit is contained in:
vuonghoainam 2023-10-19 16:15:35 -07:00
parent c5925b6a79
commit c2d3940298

View File

@ -1,7 +1,7 @@
import { EventName, InferenceService, NewMessageRequest, PluginService, core, events, store } from "@janhq/core"; import { EventName, InferenceService, NewMessageRequest, PluginService, core, events, store } from "@janhq/core";
import { Observable } from "rxjs"; 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); const initModel = async (product) => core.invokePluginFunc(MODULE_PATH, "initModel", product);