Skip to content

Privoce/vocechat-chatbot-vercel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

324 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vocechat Chatbot

部署

Vercel

部署你的版本:

Deploy with Vercel

本地开发

需要 Node.js 环境

1. 克隆代码库

git clone https://github.com/Privoce/vocechat-chatbot-ui.git

2. 安装依赖

npm i

3. 提供 OpenAI API Key

创建.env.local,填入 OpenAI API Key:

OPENAI_API_KEY=YOUR_KEY

如果你所在的地区,无法访问 OpenAI 服务,可以通过OPENAI_API_HOST指定代理

如有必要,也可以设置OPENAI_ORGANIZATION来指定组织

4. 跑起来

npm run dev

配置项

环境变量 默认值 描述
VOCECHAT_ORIGIN Vocechat API 地址,一般和你的 vocechat 访问地址一致,比如 https://vocechat.example.com
VOCECHAT_BOT_ID Vocechat 机器人 ID,在你新建的机器人名称下面可以找到,#开头
VOCECHAT_BOT_SECRET Vocechat 机器人 API Key,用于 Vocechat 接口授权
OPENAI_API_KEY The default API key used for authentication with OpenAI
OPENAI_API_HOST https://api.openai.com The base url, for Azure use https://<endpoint>.openai.azure.com
OPENAI_ORGANIZATION Your OpenAI organization ID
DEFAULT_MODEL gpt-3.5-turbo The default model to use on new conversations, for Azure use gpt-35-turbo
NEXT_PUBLIC_DEFAULT_SYSTEM_PROMPT see here The default system prompt to use on new conversations
NEXT_PUBLIC_DEFAULT_TEMPERATURE 1 The default temperature to use on new conversations

如果你没有 OpenAI API Key,可以 在此申请

About

Vocechat bot

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.0%
  • Other 2.0%