ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG] ChatGPT also completes user's respond

Open code-yeongyu opened this issue 2 years ago • 3 comments

Description A clear and concise description of what the bug is.

Steps to Reproduce

  1. Ask ChatGPT about something
  2. Sometimes it doesn't end by itself, but keep continues to answer as if it is an user.
    • video: https://user-images.githubusercontent.com/11153873/215934394-a09dd042-18bf-4272-bafc-eef4d2538d99.mov

Expected behavior ChatGPT should stop giving the answer when the respond of ChatGPT is done.

Output

OfficialChatGPT --api_key api_key --stream

Environment Please update your packages before reporting the issue: pip3 install --upgrade revChatGPT

  • OS: [e.g. Linux, MacOS, Windows]

  • Python version: Python 3.9.15

  • ChatGPT Version: 1.0.4

Additional context

code-yeongyu avatar Feb 01 '23 02:02 code-yeongyu

Happens sometimes. I am looking for a solution. If you have any ideas, please inform me (probably some form of stop sequences)

acheong08 avatar Feb 01 '23 04:02 acheong08

https://github.com/LlmKira/llm-kira/blob/main/src/llm_kira/client/llms/openai.py#L214

sudoskys avatar Feb 03 '23 09:02 sudoskys

maybe replace '\n\n\n' with '<|im_sep|>' is ok? It could be misleading if input prompt contains '\n\n\n' or the text ends with '\n\n'.

reference: https://github.com/waylaidwanderer/node-chatgpt-api/blob/6aeb48d03e8c172c9ee974e814dd7e367805b92a/src/ChatGPTClient.js#L33

Ulysses0817 avatar Feb 04 '23 10:02 Ulysses0817