-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
UnboundLocalError: cannot access local variable 'text' where it is not associated with a value #183
Comments
Thanks for submitting the issue. I'm happy to try and reproduce this, it looks like a piece of the code which needs a bit more error handling added. Can you share any more information about the steps you took before it happened or what flags you ran aider with? Looking at the code I'm guessing that an AttributeError fired because choices[0].delta.content wasn't defined in base_coder. |
i don't know why error is coming but I added base_cider.py And Temporarily my problem solved Error while writing code Malformed response #1, retrying... snake.py does not contain the exact sequence of ORIGINAL lines you specified. snake.py does not contain these 5 exact lines in a row:
|
is defined in base_coder.py
I have Just installed aider with the conda environment and created .aider.conf.yml within my project directory and added Azure Openai Credentials according to docs. and than just run aider with
|
i think now actual problem is Malformed response #2, retrying... snake.py does not contain the exact sequence of ORIGINAL lines you specified. snake.py does not contain these 5 exact lines in a row:
|
that problem is what happens when the LLM outputs a diff that isn't correct (misses some lines etc.) gpt-3.5 is a bit under powered when using diff edit format so if aider is detecting 3.5 as 4 as you mentioned then I'd expect to see the errors you're seeing. Does forcing it to the wholefile coder using |
Thanks for trying aider and reporting this issue. It should be fixed in the main branch: 3c0720f You can get it by installing the latest version from github:
If you have a chance to try it, let me know if it works better for you. |
i have shared complete error log as mentioned |
This fix just went out in v0.11.1. I'm going to close this issue for now, but feel free to re-open or file a new issue any time. |
I don't know what error this is but and how it's coming
Someone please guide me this is my error while installing aider or it's from source
Python 3.11.4 with conda
The text was updated successfully, but these errors were encountered: