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

Gemini can't create or edit files #579

Closed
paul-gauthier opened this issue Apr 29, 2024 · 12 comments
Closed

Gemini can't create or edit files #579

paul-gauthier opened this issue Apr 29, 2024 · 12 comments
Labels
question Further information is requested

Comments

@paul-gauthier
Copy link
Owner

Copied @ssillah10 question from #168.

Hi Paul, I am having the same issue but with Gemini. It can't create or edit files. Any suggestions?

@paul-gauthier
Copy link
Owner Author

Can you tell me the aider version, exact model name and any other settings/switches you are using? Easiest thing would be to copy & paste the "announcement" lines that aider prints on startup:

Aider v0.XX.Y
Model: gpt-N-... using ???? edit format
Git repo: .git with ### files
Repo-map: using #### tokens

@paul-gauthier paul-gauthier added the question Further information is requested label Apr 29, 2024
@ssillah10
Copy link

Aider v0.30.1
Model: gemini/gemini-1.5-pro-latest with whole edit format
Git repo: .git with 0 files
Repo-map: using 1024 tokens

@SharadK9
Copy link

Hi,
Can you tell me how I can change from gpt-4 to Gemini or Groq models?
Thanks

Aider v0.30.2-dev
Models: gpt-4-1106-preview with udiff edit format, weak model gpt-3.5-turbo
Git repo: none
Repo-map: disabled

@paul-gauthier
Copy link
Owner Author

Can you tell me how I can change from gpt-4 to Gemini or Groq models?

Here are the docs in connecting to other LLMs:

https://aider.chat/docs/llms.html

@ssillah10
Copy link

ssillah10 commented Apr 30, 2024 via email

@paul-gauthier
Copy link
Owner Author

@SharadK9 can you show me the problem you are having with aider and gemini? Either take a screenshot, copy & paste the text from your terminal or pull the lines from .aider.chat.history.md.

@SharadK9
Copy link

@SharadK9 can you show me the problem you are having with aider and gemini? Either take a screenshot, copy & paste the text from your terminal or pull the lines from .aider.chat.history.md.

Thanks Paul. Its working now. Uninstalled aider and then reinstalled again and set groq api key.

@paul-gauthier
Copy link
Owner Author

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.

@ssillah10
Copy link

this is the error i get

Malformed response #3, aborting.
https://aider.chat/docs/faq.html#aider-isnt-editing-my-files
No filename provided before ``` in file listing

@paul-gauthier paul-gauthier reopened this Apr 30, 2024
@ssillah10
Copy link

i updated aider but gemini still isn't writing or updating to files, is there a fix?

@paul-gauthier
Copy link
Owner Author

Can you show me more of the output? Ideally I would like to see what gemini is sending back as far as the code and the wrapping around it.

Also, you can try using --edit-format diff with gemini. I am about to switch gemini to use that as the default edit format.

@paul-gauthier
Copy link
Owner Author

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.

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

No branches or pull requests

3 participants