Skip to content

Commit

Permalink
feat: fix chatflow error tip
Browse files Browse the repository at this point in the history
  • Loading branch information
dolphin0618 committed Jan 22, 2024
1 parent fe3bb21 commit 38ffb67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ const useWebsocket = (chatId, flow, setChatHistory, queryString, version) => {

if ([1005, 1008].includes(event.code)) {
console.warn('即将废弃 :>> ');
setInputState({ lock: true, errorMsg: '' });
setInputState({ lock: true, errorMsg: event.reason });
} else {
if (event.reason) {
setErrorData({ title: event.reason });
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import svgr from "vite-plugin-svgr";
const apiRoutes = ["^/api/", "/health"];

// Use environment variable to determine the target.
// const target = process.env.VITE_PROXY_TARGET || "http://192.168.106.120:3003";
const target = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7860";

const proxyTargets = apiRoutes.reduce((proxyObj, route) => {
Expand All @@ -17,8 +16,9 @@ const proxyTargets = apiRoutes.reduce((proxyObj, route) => {
secure: false,
ws: true,
};
// 文件服务地址
proxyObj['/bisheng'] = {
target: "http://110.16.193.170:50061",
target: "http://127.0.0.1",
changeOrigin: true,
withCredentials: true,
secure: false
Expand Down

0 comments on commit 38ffb67

Please sign in to comment.