unconv / gpt-autopilot

A GPT-4 powered AI agent that can create full projects with iterative prompting
MIT License
304 stars 95 forks source link

Text replacing doesn't work properly with code #7

Closed unconv closed 1 year ago

unconv commented 1 year ago

The replace_text function given to GPT-4 does not seem to work properly when it comes to replacing code blocks. Perhaps the regex generated from the code block to replace is not properly formatted, or there are hallucinations in the text.

unconv commented 1 year ago

The regex was in fact not formatted properly. Switched from regex replacing to normal replacing in ca7d430

unconv commented 1 year ago

This fix is included in the v0.1.2 release