aider
aider copied to clipboard
TypeError: replace() argument 1 must be str, not None
Aider v0.28.0 Traceback (most recent call last): File "
I have successfully stored my API key using setx but I can't make this error go away.
Any ideas?
Using aider --open-api-key sk- gives the same error.
Thanks for trying aider and filing this issue. I just pushed a fix. The change is available in the main branch. You can get it by installing the latest version from github:
python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git
If you have a chance to try it, let me know if it works better for you.
Hey Paul (thanks for sharing this amazing project),
I confirm that upgrading to v0.28.1-dev solved the issue for me.
For some reason I needed to explicitely export the key ; when sourcing my .env file and trying to run Aider, it would simply print:
No OpenAI API key provided. Use --openai-api-key or export OPENAI_API_KEY.
and return
I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.