Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unterminated string starting at: line 75 column 20 (char 11355) #23

Closed
zerofill opened this issue Aug 29, 2023 · 2 comments
Closed

Unterminated string starting at: line 75 column 20 (char 11355) #23

zerofill opened this issue Aug 29, 2023 · 2 comments

Comments

@zerofill
Copy link

Basically everytime when gpt-pilot starts to generate code, it will run into Unterminated string error.

Often this is after it has been building some of the files.

If you rerun the prompt you run into the same issue.

It has done this on gpt-4 and gpt-3.5 16k on multiple different project attempts.

@zerofill
Copy link
Author

Also if I try to restore development:

Restoring development step with id 4
Traceback (most recent call last):
File "/home/zero/repos/gpt-pilot/pilot/main.py", line 35, in
project.start()
File "/home/zero/repos/gpt-pilot/pilot/helpers/Project.py", line 81, in start
self.developer.start_coding()
File "/home/zerol/repos/gpt-pilot/pilot/helpers/agents/Developer.py", line 32, in start_coding
self.implement_task()
File "/home/zerol/repos/gpt-pilot/pilot/helpers/agents/Developer.py", line 51, in implement_task
task_steps = convo_dev_task.send_message('development/parse_task.prompt', {}, IMPLEMENT_TASK)
File "/home/zero/repos/gpt-pilot/pilot/helpers/AgentConvo.py", line 59, in send_message
raise Exception("OpenAI API error happened.")
Exception: OpenAI API error happened.

@zvone187
Copy link
Contributor

zvone187 commented Aug 29, 2023

Unterminated string error. is, unfortunately, when OpenAI returns an incorrect JSON format during the function call. I'll need to add postprocessing to the function calling since it really doesn't work too well.

Re: restoring development - can you try resuming the development from one development step before? It might be that the development step is recorded right after the faulty response from OpenAI so it breaks before continuing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants