1.bug.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. name: Bug report 🐛
  2. description: 项目运行中遇到的Bug或问题。
  3. labels: ['status: needs check']
  4. body:
  5. - type: markdown
  6. attributes:
  7. value: |
  8. ### ⚠️ 前置确认
  9. 1. 网络能够访问openai接口
  10. 2. python 已安装:版本在 3.7 ~ 3.10 之间
  11. 3. `git pull` 拉取最新代码
  12. 4. 执行`pip3 install -r requirements.txt`,检查依赖是否满足
  13. 5. 拓展功能请执行`pip3 install -r requirements-optional.txt`,检查依赖是否满足
  14. 6. [FAQS](https://github.com/zhayujie/chatgpt-on-wechat/wiki/FAQs) 中无类似问题
  15. - type: checkboxes
  16. attributes:
  17. label: 前置确认
  18. options:
  19. - label: 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在[FAQS](https://github.com/zhayujie/chatgpt-on-wechat/wiki/FAQs)中也未找到类似问题。
  20. required: true
  21. - type: checkboxes
  22. attributes:
  23. label: ⚠️ 搜索issues中是否已存在类似问题
  24. description: >
  25. 请在 [历史issue](https://github.com/zhayujie/chatgpt-on-wechat/issues) 中清空输入框,搜索你的问题
  26. 或相关日志的关键词来查找是否存在类似问题。
  27. options:
  28. - label: 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
  29. required: true
  30. - type: markdown
  31. attributes:
  32. value: |
  33. 请在上方的`title`中填写你对你所遇到问题的简略总结,这将帮助其他人更好的找到相似问题,谢谢❤️。
  34. - type: dropdown
  35. attributes:
  36. label: 操作系统类型?
  37. description: >
  38. 请选择你运行程序的操作系统类型。
  39. options:
  40. - Windows
  41. - Linux
  42. - MacOS
  43. - Docker
  44. - Railway
  45. - Windows Subsystem for Linux (WSL)
  46. - Other (请在问题中说明)
  47. validations:
  48. required: true
  49. - type: dropdown
  50. attributes:
  51. label: 运行的python版本是?
  52. description: |
  53. 请选择你运行程序的`python`版本。
  54. 注意:在`python 3.7`中,有部分可选依赖无法安装。
  55. 经过长时间的观察,我们认为`python 3.8`是兼容性最好的版本。
  56. `python 3.7`~`python 3.10`以外版本的issue,将视情况直接关闭。
  57. options:
  58. - python 3.7
  59. - python 3.8
  60. - python 3.9
  61. - python 3.10
  62. - other
  63. validations:
  64. required: true
  65. - type: dropdown
  66. attributes:
  67. label: 使用的chatgpt-on-wechat版本是?
  68. description: |
  69. 请确保你使用的是 [releases](https://github.com/zhayujie/chatgpt-on-wechat/releases) 中的最新版本。
  70. 如果你使用git, 请使用`git branch`命令来查看分支。
  71. options:
  72. - Latest Release
  73. - Master (branch)
  74. validations:
  75. required: true
  76. - type: dropdown
  77. attributes:
  78. label: 运行的`channel`类型是?
  79. description: |
  80. 请确保你正确配置了该`channel`所需的配置项,所有可选的配置项都写在了[该文件中](https://github.com/zhayujie/chatgpt-on-wechat/blob/master/config.py),请将所需配置项填写在根目录下的`config.json`文件中。
  81. options:
  82. - wx(个人微信, itchat)
  83. - wxy(个人微信, wechaty)
  84. - wechatmp(公众号, 订阅号)
  85. - wechatmp_service(公众号, 服务号)
  86. - terminal
  87. - other
  88. validations:
  89. required: true
  90. - type: textarea
  91. attributes:
  92. label: 复现步骤 🕹
  93. description: |
  94. **⚠️ 不能复现将会关闭issue.**
  95. - type: textarea
  96. attributes:
  97. label: 问题描述 😯
  98. description: 详细描述出现的问题,或提供有关截图。
  99. - type: textarea
  100. attributes:
  101. label: 终端日志 📒
  102. description: |
  103. 在此处粘贴终端日志,可在主目录下`run.log`文件中找到,这会帮助我们更好的分析问题,注意隐去你的API key。
  104. 如果在配置文件中加入`"debug": true`,打印出的日志会更有帮助。
  105. <details>
  106. <summary><i>示例</i></summary>
  107. ```log
  108. [DEBUG][2023-04-16 00:23:22][plugin_manager.py:157] - Plugin SUMMARY triggered by event Event.ON_HANDLE_CONTEXT
  109. [DEBUG][2023-04-16 00:23:22][main.py:221] - [Summary] on_handle_context. content: $总结前100条消息
  110. [DEBUG][2023-04-16 00:23:24][main.py:240] - [Summary] limit: 100, duration: -1 seconds
  111. [ERROR][2023-04-16 00:23:24][chat_channel.py:244] - Worker return exception: name 'start_date' is not defined
  112. Traceback (most recent call last):
  113. File "C:\ProgramData\Anaconda3\lib\concurrent\futures\thread.py", line 57, in run
  114. result = self.fn(*self.args, **self.kwargs)
  115. File "D:\project\chatgpt-on-wechat\channel\chat_channel.py", line 132, in _handle
  116. reply = self._generate_reply(context)
  117. File "D:\project\chatgpt-on-wechat\channel\chat_channel.py", line 142, in _generate_reply
  118. e_context = PluginManager().emit_event(EventContext(Event.ON_HANDLE_CONTEXT, {
  119. File "D:\project\chatgpt-on-wechat\plugins\plugin_manager.py", line 159, in emit_event
  120. instance.handlers[e_context.event](e_context, *args, **kwargs)
  121. File "D:\project\chatgpt-on-wechat\plugins\summary\main.py", line 255, in on_handle_context
  122. records = self._get_records(session_id, start_time, limit)
  123. File "D:\project\chatgpt-on-wechat\plugins\summary\main.py", line 96, in _get_records
  124. c.execute("SELECT * FROM chat_records WHERE sessionid=? and timestamp>? ORDER BY timestamp DESC LIMIT ?", (session_id, start_date, limit))
  125. NameError: name 'start_date' is not defined
  126. [INFO][2023-04-16 00:23:36][app.py:14] - signal 2 received, exiting...
  127. ```
  128. </details>
  129. value: |
  130. ```log
  131. <此处粘贴终端日志>
  132. ```