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

身份验证和数据库等问题 #3

Closed
yangyucacaa opened this issue Jun 14, 2024 · 4 comments
Closed

身份验证和数据库等问题 #3

yangyucacaa opened this issue Jun 14, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@yangyucacaa
Copy link

可否通过环境变量设置一些内容。

  1. 自定义是否需要登录和使用数据库。
  2. 自定义模型,例如仅允许使用 gpt3.5,禁用 4.0。
@0xinhua
Copy link
Owner

0xinhua commented Jun 14, 2024

@yangyucacaa 嗨,可以支持。想了解下关于 1 是指希望不用登录系统以及不用配置数据库的情况下也能正常使用? 还是说你希望使用其它的数据库来配置存储数据?由于这个 chatbot 还处于非常早期的开发阶段,主要是自己和我的几个朋友在用,目前支持的功能也比较有限,欢迎多提一些反馈,让它更好用。

@yangyucacaa
Copy link
Author

yangyucacaa commented Jun 14, 2024

谢谢回复,是的,是指不用登录系统以及不用配置数据库的情况下也能正常使用。

通过环境变量来设置是否使用登录系统和使用数据库,如果不使用则把聊天记录保存在浏览器本地。

这个项目非常棒,UI 很好看,如果它能支持类似于 ChatGPTNextWeb 那样简单的部署使用将会非常方便。

@0xinhua 0xinhua added the enhancement New feature or request label Jun 14, 2024
@0xinhua
Copy link
Owner

0xinhua commented Jun 19, 2024

可否通过环境变量设置一些内容。

  1. 自定义是否需要登录和使用数据库。
  2. 自定义模型,例如仅允许使用 gpt3.5,禁用 4.0。

@yangyucacaa 已经更新了一版:

env 设置 NEXT_PUBLIC_STORAGE_MODE="local" 本地模式对话数据会存储在浏览器端,"cloud" 则存储在云端数据库;可以通过配置 NEXT_PUBLIC_DEFAULT_MODEL 环境变量设置默认使用的模型,如果需要配置模型及版本禁用,更新 model配置文件 即可。

@0xinhua
Copy link
Owner

0xinhua commented Jun 29, 2024

Hi, 最新版默认就是本地模式,不需要登录和数据库,所有数据存储在浏览器端,填入自己 key 即可使用。

@0xinhua 0xinhua closed this as completed Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants