ConnectAI-E / Feishu-OpenAI-Stream-Chatbot

🎒 可以流式输出文本的飞书openai机器人 Feishu-OpenAI robot that can stream chat
https://www.connectai-e.com
GNU General Public License v3.0
145 stars 45 forks source link

修改模型为GPT-4不生效 #15

Open vbandci opened 1 year ago

vbandci commented 1 year ago

不知道为什么修改成gpt-4模型,数据还是gpt-3.5的

bourne7 commented 1 year ago

请问你是从哪里看出来 “数据还是gpt-3.5” 的呢?我测试过,只要将 config.yaml 里面 配置为 OPENAI_MODEL: gpt-4,代码里面运行到: https://github.com/ConnectAI-E/Feishu-OpenAI-Stream-Chatbot/blob/59f6bd7951cf0d18a70a56820413499084d245ce/code/services/chatgpt/gpt3.go#L61 的时候就会生效了。

GPT4 的特征就是会慢一些。

此外配置的时候请按照这里配置 https://platform.openai.com/docs/models/model-endpoint-compatibility gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-0301