You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fork仓库最新代码导致该方法报错
[FATAL] 2024/03/07 - 07:54:47 | [Error parsing JSON: json: cannot unmarshal string into Go struct field BotConfig.model of type []string]
fz68
added a commit
to fz68/coze-discord-proxy
that referenced
this issue
Mar 27, 2024
机器人部署(实现会话隔离)
手动部署:
进入 Zeabur,使用github登录,进入控制台。
在 Service -> Add Service,选择 Git(第一次使用需要先授权),选择你 fork 的仓库。
Deploy 会自动开始,先取消。
添加环境变量
BOT_TOKEN:MTE5OTk2xxxxxxxxxxxxxxrwUrUWNbG63w
主动发送消息的Bot-TokenGUILD_ID:119xxxxxxxx796
两个机器人所在的服务器IDCOZE_BOT_ID:119xxxxxxxx7
由coze托管的机器人IDCHANNEL_ID:119xxxxxx24
# 默认频道-在使用与openai对齐的接口时(/v1/chat/completions) 消息会默认发送到此频道PROXY_SECRET:123456
[可选]接口密钥-修改此行为请求头校验的值(多个请以,分隔),配置此参数后,每次发起请求时请求头加上proxy-secret
参数,即
header
中添加proxy-secret:123,456,789
BOT_CONFIG
:部署好,可以先自测,下面接口测试命令:
The text was updated successfully, but these errors were encountered: