Skip to content

wuwuarandhg/chat-robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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,可以 在此申请

Releases

No releases published

Packages

No packages published

Languages