ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

incomplete code

Open Birutilla opened this issue 1 year ago • 2 comments

Version

v0.12.0

Bug description

I'm trying to get ChatGPT to write a code for transforming Decimal degrees to UTM coordinates, the code I get is never finished, always missing the end.[Bug] Screenshot 2023-03-09 123454

OS

Windows 11

Environment

No response

Birutilla avatar Mar 09 '23 15:03 Birutilla

openai return message will be limited by length, you can send: "continue".

lencx avatar Mar 10 '23 00:03 lencx

it is OpenAI tokens limitations, try to add in your prompt to number the code lines and stop at a certain number... and wait for your instruction to continue.

Or just copy the section (last few lines at which it has stopped) and paste them as it to continue from there and show you just the missing part (to avoid regenerating from the beginning and stopping again) ...

You have to be clever!

neoOpus avatar Mar 10 '23 07:03 neoOpus