Sending prompt before entering API key results in chat not working after entering the API key
What happened?
When I first open PyCharm, I click on an existing chat and send a prompt. It says I have to reenter my API key. After I reenter my API key, I click the regenerate button and CodeGPT responds to my prompt. However, after receiving that first response in my existing chat after having regenerated it, I cannot send any more prompts. The text remains in the textbox and will not send when I click the Send icon. In this scenario, I have to create a new chat to be able to use CodeGPT.
If I open PyCharm and go directly to the settings to reenter my API key BEFORE sending any prompts, the chats will work as intended. It's only when I try to continue a chat without first reentering my API key that I run into issues.
Relevant log output or stack trace
No response
Steps to reproduce
Using GPT-4 Turbo (Legacy)(128k) in PyCharm Professional 2023.3.4 Build PY-233.14475.56, built on February 25, 202 License for educational use only Django Project using virtual environment with Python 3.10
- Open PyCharm
- Send prompt in existing chat
- Told to go reenter API key to proceed
- After entering API key, regenerate the response and get a valid response
- Additional prompts won't send in this chat and thus won't receive a response
- Either start a new chat to fix OR restart PyCharm and enter the API key BEFORE sending any messages in a chat
CodeGPT version
2.5.1
Operating System
Windows
Can you reproduce the bug and post the stacktrace?
-
Help / Show log in Finder(on Mac) - Open
idea.log - Search from the end of the file:
at ee.carlrobert.codegpt - If you find such a
SEVERE -block, post the whole stacktrace here until the lastatline (before the next2024-04-line)