Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前后端分离部署错误,网络请求错误。 #8

Closed
1 task done
nuass opened this issue Jun 12, 2023 · 3 comments
Closed
1 task done

前后端分离部署错误,网络请求错误。 #8

nuass opened this issue Jun 12, 2023 · 3 comments

Comments

@nuass
Copy link

nuass commented Jun 12, 2023

⚠️ 确认 issue 是否已存在 ⚠️

  • 我已经搜索了现有的问题,没有找到跟我问题相关的问题。

GPT-3 or GPT-4

GPT-4

操作系统

Linux
云服务器
192.168.0.129为司有IP

Bug 描述 📝

前后端分类部署,
后端、前端服务都启动

重现步骤 🕹

可重现11111111111

你的应用配置信息

Title = "Chat-Plus AI 助手"
ConsoleTitle = "Chat-Plus 控制台"
Listen = "192.168.0.129:5678"
ProxyURL = ["YOUR_PROXY_URL"]
AccessKey = "YOUR_ACCESS_KEY"

[Session]
  SecretKey = "azyehq3ivunjhbntz78isj00i4hz2mt9xtddysfucxakadq4qbfrt0b7q3lnvg80"
  Name = "CHAT_SESSION_ID"
  Path = "/"
  Domain = "192.168.0.129"
  MaxAge = 86400
  Secure = false
  HttpOnly = false
  SameSite = 2

[ImgURL]
  WechatCard = "https://img.r9it.com/chatgpt/WX20230505-162403.png"
  WechatGroup = " https://img.r9it.com/chatgpt/WX20230505-162538.png"

[Manager]
  Username = "admin"
  Password = "admin123"

[Chat]
  ApiURL = "https://api.openai.com/v1/chat/completions"
  Model = "gpt-3.5-turbo"
  Temperature = 1.0
  MaxTokens = 1024
  EnableContext = true
  ChatContextExpireTime = 3600

  [[Chat.ApiKeys]]
    Value = "1233333333333333333333333333333333333333333333333333"
    LastUsed = 0

VUE_APP_API_HOST=http://192.168.0.129:5678
VUE_APP_WS_HOST=ws://192.168.0.129:5678

@nuass
Copy link
Author

nuass commented Jun 12, 2023

使用的云服务器,配置都是用的私有IP192.168.0.129,访问的是http://公网ip:8888/chat/#/plus,打开后显示网络问题

@yangjian102621
Copy link
Owner

@nuass 如果部署在服务器那就必须配置成域名或者公网 IP

VUE_APP_API_HOST=http://192.168.0.129:5678/
VUE_APP_WS_HOST=ws://192.168.0.129:5678

@nuass
Copy link
Author

nuass commented Jun 13, 2023

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants