This commit is contained in:
AndzejsP 2023-06-02 12:29:55 +03:00
parent 782c6fd571
commit 2ad9761405
4 changed files with 22 additions and 21 deletions

View File

@ -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
View File

@ -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>

View File

@ -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.');