mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
docs gemini cli
This commit is contained in:
parent
5ebdb58115
commit
bca94535da
2 changed files with 31 additions and 0 deletions
30
docs/my-website/docs/tutorials/litellm_gemini_cli.md
Normal file
30
docs/my-website/docs/tutorials/litellm_gemini_cli.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Use LiteLLM with Gemini CLI
|
||||
|
||||
Quickstart
|
||||
|
||||
|
||||
### 1. Install Gemini CLI
|
||||
|
||||
```bash
|
||||
git clone https://github.com/ishaan-jaff/gemini-cli.git
|
||||
cd gemini-cli
|
||||
```
|
||||
|
||||
### 2. Point Gemini CLI to LiteLLM Proxy
|
||||
|
||||
Set `BASE_URL` to the LiteLLM Proxy URL and set `GEMINI_API_KEY` to your LiteLLM Proxy API key.
|
||||
|
||||
```bash
|
||||
export BASE_URL=http://localhost:4000
|
||||
export GEMINI_API_KEY=sk-1234567890
|
||||
```
|
||||
|
||||
### 3. Run Gemini CLI
|
||||
|
||||
```bash
|
||||
npm run build && npm start
|
||||
```
|
||||
|
||||
### 4. Test it
|
||||
|
||||
Send a test request on Gemini CLI, this will get routed to LiteLLM Proxy and then to Gemini.
|
||||
|
|
@ -69,6 +69,7 @@ const sidebars = {
|
|||
items: [
|
||||
"tutorials/openweb_ui",
|
||||
"tutorials/openai_codex",
|
||||
"tutorials/litellm_gemini_cli",
|
||||
"tutorials/claude_responses_api",
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue