paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
16.92k stars 1.59k forks source link

Gemini can't create or edit files #579

Closed paul-gauthier closed 3 months ago

paul-gauthier commented 4 months ago

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 commented 4 months ago

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
ssillah10 commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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

On Mon, Apr 29, 2024 at 7:56 PM paul-gauthier @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/paul-gauthier/aider/issues/579#issuecomment-2083549001, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOH4FJOKP3VLJYEHVGSN45LY72QXPAVCNFSM6AAAAABG66OKT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGU2DSMBQGE . You are receiving this because you were mentioned.Message ID: @.***>

paul-gauthier commented 3 months ago

@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 commented 3 months ago

@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 commented 3 months ago

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 commented 3 months ago

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

ssillah10 commented 3 months ago

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

paul-gauthier commented 3 months ago

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 commented 3 months ago

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.