This commit is contained in:
thororen1234 2025-06-06 15:31:20 -04:00
parent 8ae44e2ec3
commit a6e2194804
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -244,7 +244,7 @@ export default function PluginSettings() {
}));
}, []);
const depMap = React.useMemo(() => {
const depMap = useMemo(() => {
const o = {} as Record<string, string[]>;
for (const plugin in Plugins) {
const deps = Plugins[plugin].dependencies;

View file

@ -24,7 +24,7 @@ export default async (
}: FurudoSettings,
repliedMessage?: Message
): Promise<string> => {
const completion = await fetch("http://localhost:11434/api/chat", {
const completion = await fetch("http://127.0.0.1:11434/api/chat", {
method: "POST",
headers: {
"Content-Type": "application/json",

View file

@ -29,7 +29,7 @@ export default definePlugin({
authors: [Devs.AutumnVN],
start() {
(function connect() {
ws = new WebSocket("ws://localhost:24050/websocket/v2");
ws = new WebSocket("ws://127.0.0.1:24050/websocket/v2");
ws.addEventListener("error", () => ws.close());
ws.addEventListener("close", () => wsReconnect = setTimeout(connect, 5000));
ws.addEventListener("message", ({ data }) => throttledOnMessage(data));

View file

@ -29,7 +29,7 @@ export let socket: WebSocket | undefined;
export function initWs(isManual = false) {
let wasConnected = isManual;
let hasErrored = false;
const ws = socket = new WebSocket(`ws://localhost:${PORT}`);
const ws = socket = new WebSocket(`ws://127.0.0.1:${PORT}`);
function replyData(data: OutgoingMessage) {
ws.send(JSON.stringify(data));