You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
I find it impossible to create a provider to connect to Google Gemini.
When I try to create an OpenAI provider with endpoint https://generativelanguage.googleapis.com/v1beta/openai, CodeGate tries to download the models from https://generativelanguage.googleapis.com/v1beta/openai/v1/models, while the proper url should have been https://generativelanguage.googleapis.com/v1beta/openai/models.
I'm using Cline. But that really doesn't matter. I can't even start using Cline, since I'm not able to register a provider in CodeGate. I also tried to override the OpenAI url (with env variable), and could not make it work. I did not enable debug logging when I did that, so I can't be sure what URL it was trying to reach, but I was not able to reach the Gemini service.
As you can see from my bug report, the reason this fails is that the OpenAI REST endpoints are what you have after the .../v1/. You automatically add the v1/ between the providers endpoint URL and the OpenAI endpoints. If you didn't do that, I suspect everything would work just fine.
Activity
lukehinds commentedon Apr 1, 2025
which coding assistant were you using @magne ?
magne commentedon Apr 1, 2025
I'm using Cline. But that really doesn't matter. I can't even start using Cline, since I'm not able to register a provider in CodeGate. I also tried to override the OpenAI url (with env variable), and could not make it work. I did not enable debug logging when I did that, so I can't be sure what URL it was trying to reach, but I was not able to reach the Gemini service.
As you can see from my bug report, the reason this fails is that the OpenAI REST endpoints are what you have after the
.../v1/. You automatically add thev1/between the providers endpoint URL and the OpenAI endpoints. If you didn't do that, I suspect everything would work just fine.