forked from tomatocuke/openai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
37 lines (31 loc) · 1.42 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 保持更新。 https://github.com/tomatocuke/openai
http:
# 必填: 端口号。 如果修改,注意也修改 docker 启动命令里的端口映射。
port: 80
# 可选: 代理地址。需要你有本地或远程代理软件,举例: socks5://127.0.0.1:7890 或 7891
proxy:
openai:
# 必填: KEY。 文档: https://platform.openai.com/account/api-keys
key: XXX
# 可选: 参数调节
params:
# openai的接口地址,放出来是因为有些人做了反向代理,要注意这有安全问题,谨慎使用
api: https://api.openai.com/v1/chat/completions
# 暂时请使用 gpt-3.5-turbo
model: gpt-3.5-turbo
# 提示。 可以理解为对其身份设定。 文档: https://platform.openai.com/docs/guides/chat/introduction
# 每个问题都会携带,注意,它也占用token消耗。
prompt:
# 影响 问题+回复的长度。 gpt-3.5模型最大4096, 非1个汉字1token
maxTokens: 1024
# 温度。 0-2 。较高的值将使输出更加随机,而较低的值将使输出更加集中和确定。
temperature: 0.8
# 限制用户问题最大长度。这个以字计算,非token.
maxQuestionLength: 200
wechat:
# 必填(公众号服务). 与公众号设置保持一致
token: XXX
# 影响滚动返回结果 (5s-13s)
timeout: 7
# 用户关注时主动发送的消息
subscribeMsg: 你好,我是基于ChatGPT的AI助手,有什么能帮助您的吗?