chatgpt-vscode icon indicating copy to clipboard operation
chatgpt-vscode copied to clipboard

Code is truncated at the end

Open tberta opened this issue 6 months ago • 1 comments

Verify it's not a duplicate bug report

Describe the Bug

The code returned from ChatGPT in a Vscode editor window is truncated. There are 1 or 2 missing lines at the end. See this piece of code from chatgpt, truncated at the end, compared to original source: code from chatgpt truncated at the end, compared to original source

Also, a markdown delimited for code is also left at the beginning. Eg for a Python script, the generated code begins with : ```python image

Steps to reproduce: In Genie Editor mode:

  1. Select code
  2. Click "Optimize"
  3. Generated code is truncated at the end. Missing 1 or 2 lines of code.

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

Using default with gpt-4o

Additional context

With ChatGPT Genie AI v0.0.11 on Windows

tberta avatar Aug 23 '24 14:08 tberta