feature: I want to use Gemini 2.5 pro
Feature request
Can I use the Avante with Gemini? what I should change in endpoint and change in my $PATH,now I use Deepseek,but I want to try Gemini
Motivation
No response
Other
No response
You just need add the model in your config and
opts = {
provider = "gemini",
gemini = {
model = "gemini-2.5-pro-exp-03-25",
},
},
and you need to add GEMINI_API_KEY env variable in your terminal session
OK,I will try ,and thank you for your help
You just need add the model in your config and
opts = { provider = "gemini", gemini = { model = "gemini-2.5-pro-exp-03-25", }, },and you need to add
GEMINI_API_KEYenv variable in your terminal session
I want to ask an other question. What end point should I use? Is
https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro-exp-03-25t:generateContent?key=MY_API_KEY
or others ?
You don't need to define a custom endpoint, there's already a default in the gemini provider config:
https://github.com/yetone/avante.nvim/blob/e295fe82f0714188615a524604bdaccd266ced35/lua/avante/config.lua#L260-L267
So, with the GEMINI_API_KEY in your env and model set to a valid gemini model, you should be set.
Can close this issue.
A few days ago, my Avante plugin was working fine with Gemini, but now for some reason, when I call this plugin, it automatically connects to DeepSeek instead of my Gemini, why is that?
Does anyone get good use of Gemini? I'm trying to use because I keep running into overload issues with Claude, but it's barely working. It doesn't know how to run commands, search for files, etc.. So it's pretty useless.
Yes, I use Gemini and it works well for me. I use these models:
- gemini-2.0-pro-exp-02-05 (works great but is a bit slower than the 'flash' versions)
- gemini-2.0-flash (a bit less powefull than the pro but faster) and since this morning I use
- gemini-2.5-flash-preview-04-17 (seems very good and fast so far...) (and all that for free)
Does anyone make tools worked with gemini-2.5? in my case, when the prompt i input need the model to use tools, it will output the tool it needs to call and then stopped.
A few days ago, my Avante plugin was working fine with Gemini, but now for some reason, when I call this plugin, it automatically connects to DeepSeek instead of my Gemini, why is that?
you can use Lazy reload avante.nvim to reload the plugin
Does anyone make tools worked with gemini-2.5
The pro models work great. The flash ones may not always use tools: cheaper but your mileage may vary.
This issue can be closed: the Gemini models work
It's not working for me at all. It doesn't seem to be aware of any tools at all, it always asks me to add more context.
I am getting an invalid api key error when I have
GEMINI_API_KEYset in my env and the following configuration. Am I doing something wrong here?gemini = { api_key_name = "GEMINI_API_KEY", model = "gemini-2.5-pro-preview-03-25", -- your desired model (or use gpt-4o, etc.) timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models temperature = 0, max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models) --reasoning_effort = "medium", -- low|medium|high, only used for reasoning models },
disregard I figured out my issue.
I am getting an invalid api key error when I have
GEMINI_API_KEYset in my env and the following configuration. Am I doing something wrong here?gemini = { api_key_name = "GEMINI_API_KEY", model = "gemini-2.5-pro-preview-03-25", -- your desired model (or use gpt-4o, etc.) timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models temperature = 0, max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models) --reasoning_effort = "medium", -- low|medium|high, only used for reasoning models },disregard I figured out my issue.
opts = {
-- Gemini 2.5 flash
provider = "gemini",
gemini = {
endpoint = "https://generativelanguage.googleapis.com/v1beta/models",
model = "gemini-2.5-pro-preview-03-25"
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 8192,
},
},
Actually you only need to send the provider. for the api key you have to enter it in each terminal session
export GEMINI_API_KEY=your-api-key
just paste in your terminal
Gemini has this problem where it will try to do stuff but abruptly stop, claiming that it will do something next without actually ever doing it. Very similar case with Cursor, so I think we 100% copied Cursor in that sense.
I think we can improve a bit on it here though.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Same error here. Avante does not select provider gemini. I have to use comand AvanteSwitchProvider gemini and it works.
Same error here. Avante does not select provider gemini. I have to use comand
AvanteSwitchProvider geminiand it works.
same here! thanks for the :AvanteSwitchProvider gemini trick. only then does it work for me.