-
Notifications
You must be signed in to change notification settings - Fork 73
feat(ai-gateway): Proxy Gemini CLI via AI Gateway #3887
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cloudjumpercat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some suggestions! Main things:
- Left a comment where I got stuck in the validate section and I couldn't get it to work for me.
- A few suggestions to make the copy/paste flow smoother.
- Add a sentence to the File Log and AI Proxy sections explaining the why/use case/what it's doing.
| 2. Run a test command to test the connection: | ||
|
|
||
| ```text | ||
| Tell me about prisoner's dilemma. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got stuck here, it detected I had exported the API key, so I hit enter like it said. Took me to the prompt window, I ran the prompt and got:
> Tell me about prisoner's dilemma.
✕ [API Error: Invalid URL]
> Tell me about prisoner's dilemma.
✕ [API Error: Invalid URL]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is weird. I've just retested this and it works for me. Let me check again
| --- | ||
| ## Configure the AI Proxy plugin | ||
|
|
||
| First, let's configure the [AI Proxy](/plugins/ai-proxy/) plugin. The Gemini CLI expects to communicate with Google's Gemini API using the chat endpoint. The plugin handles authentication using a query parameter and forwards requests to the specified model. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like a sentence here about the use case. Why not just route it through regular Gemini? Why use the Gemini CLI? Does this just ensure requests are handled by Gemini instead of another provider and you have to use the CLI to configure this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gemini CLI is a coding agent, just like Claude Code, or Codex. Let me add some explanation here.
Co-authored-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Description
Fixes #3402
Preview Links
https://deploy-preview-3887--kongdeveloper.netlify.app/how-to/use-gemini-cli-with-ai-gateway/
Checklist
descriptionentry in frontmatter.