mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
test 4
This commit is contained in:
parent
782c6fd571
commit
2ad9761405
4
web/.env
4
web/.env
@ -1,4 +1,4 @@
|
|||||||
VITE_GPT4ALL_API = https://0.0.0.0:9600 # http://localhost:9600
|
VITE_GPT4ALL_API = http://localhost:9600 # http://localhost:9600
|
||||||
VITE_GPT4ALL_API_CHANGE_ORIGIN = 0 # FALSE
|
VITE_GPT4ALL_API_CHANGE_ORIGIN = 0 # FALSE
|
||||||
VITE_GPT4ALL_API_SECURE = 1 # FALSE
|
VITE_GPT4ALL_API_SECURE = 0 # FALSE
|
||||||
VITE_GPT4ALL_API_BASEURL = /
|
VITE_GPT4ALL_API_BASEURL = /
|
||||||
|
File diff suppressed because one or more lines are too long
2
web/dist/index.html
vendored
2
web/dist/index.html
vendored
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>GPT4All - WEBUI</title>
|
<title>GPT4All - WEBUI</title>
|
||||||
<script type="module" crossorigin src="/assets/index-be8e90e6.js"></script>
|
<script type="module" crossorigin src="/assets/index-538eeb6b.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index-faf1ba4a.css">
|
<link rel="stylesheet" href="/assets/index-faf1ba4a.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -6,8 +6,9 @@
|
|||||||
import { createApp } from 'vue';
|
import { createApp } from 'vue';
|
||||||
import io from 'socket.io-client';
|
import io from 'socket.io-client';
|
||||||
|
|
||||||
|
const URL = process.env.NODE_ENV === "production" ? undefined : (import.meta.env.VITE_GPT4ALL_API);
|
||||||
const socket = new io(import.meta.env.VITE_GPT4ALL_API );
|
const socket = new io(URL);
|
||||||
|
//const socket = new io(import.meta.env.VITE_GPT4ALL_API );
|
||||||
|
|
||||||
socket.onopen = () => {
|
socket.onopen = () => {
|
||||||
console.log('WebSocket connection established.');
|
console.log('WebSocket connection established.');
|
||||||
|
Loading…
Reference in New Issue
Block a user