#How to make AI continue where it left off in code

29 messages · Page 1 of 1 (latest)

olive swallow
#

If anyone has a method to do so please let me know, everything I tried makes it completely change up how its writting the code, write it in a different language, or redo the entire thing.

waxen valley
#

Just write "continue"

olive swallow
#

Doesnt work when I try it

waxen valley
#

Strange, that's what I write and it works every time

prime matrix
#

is this a single, specific conversation?

olive swallow
#

Its been like this multiple times

#

Let me try it again

prime matrix
#

you could be losing an important piece of context from earlier in the conversation and that is why it's suddenly different

olive swallow
#

Thats what im thinking

prime matrix
#

you can try asking for the earliest message from the context

olive swallow
#

completely different

prime matrix
#

try saying continue from "{copy paste a few lines at the end here}"

#

this can also happen if you established a context that isn't inherently continuous

#

making it clearer that you want to continue from the previous response can help

olive swallow
#

That worked but its coding in a different format

#

Not consistent with how it was previously coding

#

bah its fine

waxen valley
#

Interesting. I've used it mostly for javascript and it's always continued exactly where it left off in the previous response. Maybe it behaves differently with python?

olive swallow
#

This is for c#

#

I dont know why its writting in python

olive swallow
#

I didnt even notice its a different language 😆

waxen valley
#

oh that's even weirder lol

prime matrix
#

Sometimes it's basically expanding a template structure it's learned before and when it gets cut off, it just has no way of recovering what that template was or how far into it it got

#

in those cases there is no method of forcing it to just continue but you can solve the issue preemptively by asking for a high level outline of the solution first

#

and then asking for pieces

rustic tulip
#

maybe copy the entire response to your question and tell it to continue the code

flint gust
#

This is a very big issue for developing anything of substance.
ChatGPT sometimes changes programming language in the middle of the conversation without being prompted to do so. It sometimes changes the agreed upon aproach significantly without notifying the user or explaining why. For me it never continues of at the right position when it stopped while writing in code blocks and when asked to redo the code block it tends to do non-sensical stuff more often than not.

If anybody found a way to prompt it so it doesn't do these things, please for the love of god enlighten me!