bestony / ChatGPT-Feishu

给飞书准备的 ChatGPT 机器人
GNU General Public License v3.0
1.12k stars 281 forks source link

面向多轮对话调优 #3

Closed bestony closed 1 year ago

bestony commented 1 year ago

面向多轮对话调优。

具体实现思路:

  1. 将每次用户发的问题记录下来;
  2. 拼接成新的对话,并发给 OpenAI。
  3. 如果新的对话长度超出限制,则去除前面的对话问题。
bestony commented 1 year ago

可以参考的部分:https://github.com/zhayujie/chatgpt-on-wechat/blob/25c2f1add72b732c350c79e298d74bd366f57f82/bot/openai/open_ai_bot.py#LL95

bestony commented 1 year ago

16 by @lml1108

17 by @Iambihua

work for this

bestony commented 1 year ago

已经在 #30 实现