feat: Add gemini-3-pro-low model, refine Gemini model aliases, and include a token acquisition guide in the README.
This commit is contained in:
28
README.md
28
README.md
@@ -1,9 +1,3 @@
|
|||||||
<h1 align="center">ZeroGravity</h1>
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<img src="assets/logo.png" alt="ZeroGravity" width="200" />
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/badge/rust-1.75+-555?style=flat-square&logo=rust&logoColor=white" alt="Rust" />
|
<img src="https://img.shields.io/badge/rust-1.75+-555?style=flat-square&logo=rust&logoColor=white" alt="Rust" />
|
||||||
<img src="https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-555?style=flat-square" alt="Platform" />
|
<img src="https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-555?style=flat-square" alt="Platform" />
|
||||||
@@ -14,6 +8,12 @@
|
|||||||
<img src="https://img.shields.io/badge/stealth-JA3%2FJA4-333?style=flat-square" alt="Stealth" />
|
<img src="https://img.shields.io/badge/stealth-JA3%2FJA4-333?style=flat-square" alt="Stealth" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<h1 align="center">ZeroGravity</h1>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="assets/logo.png" alt="ZeroGravity" width="200" />
|
||||||
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
OpenAI-compatible proxy that intercepts and relays requests to Google's Antigravity language server, impersonating the real Electron webview.
|
OpenAI-compatible proxy that intercepts and relays requests to Google's Antigravity language server, impersonating the real Electron webview.
|
||||||
</p>
|
</p>
|
||||||
@@ -43,8 +43,9 @@ graph LR
|
|||||||
| ------------------- | -------------------------- | ------------------- |
|
| ------------------- | -------------------------- | ------------------- |
|
||||||
| `opus-4.6` | Claude Opus 4.6 (Thinking) | Default model |
|
| `opus-4.6` | Claude Opus 4.6 (Thinking) | Default model |
|
||||||
| `opus-4.5` | Claude Opus 4.5 (Thinking) | — |
|
| `opus-4.5` | Claude Opus 4.5 (Thinking) | — |
|
||||||
| `gemini-3-pro-high` | Gemini 3 Pro (High) | — |
|
| `gemini-3-pro` | Gemini 3 Pro (High) | Default Pro tier |
|
||||||
| `gemini-3-pro` | Gemini 3 Pro (Low) | — |
|
| `gemini-3-pro-high` | Gemini 3 Pro (High) | Alias |
|
||||||
|
| `gemini-3-pro-low` | Gemini 3 Pro (Low) | — |
|
||||||
| `gemini-3-flash` | Gemini 3 Flash | Recommended for dev |
|
| `gemini-3-flash` | Gemini 3 Flash | Recommended for dev |
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
@@ -135,6 +136,17 @@ The proxy needs an OAuth token:
|
|||||||
2. **Token file**: `~/.config/zerogravity-token`
|
2. **Token file**: `~/.config/zerogravity-token`
|
||||||
3. **Runtime**: `curl -X POST http://localhost:8741/v1/token -d '{"token":"ya29.xxx"}'`
|
3. **Runtime**: `curl -X POST http://localhost:8741/v1/token -d '{"token":"ya29.xxx"}'`
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>How to get the token</summary>
|
||||||
|
|
||||||
|
1. Open Antigravity
|
||||||
|
2. Go to **Help** > **Toggle Developer Tools**
|
||||||
|
3. Send any prompt
|
||||||
|
4. In the **Network** tab, find a request to `generativelanguage.googleapis.com`
|
||||||
|
5. Copy the `Authorization: Bearer ya29.xxx...` header value
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## `zg` Commands
|
## `zg` Commands
|
||||||
|
|
||||||
| Command | Description |
|
| Command | Description |
|
||||||
|
|||||||
@@ -28,6 +28,12 @@ pub(crate) const MODELS: &[ModelDef] = &[
|
|||||||
model_enum: 1012,
|
model_enum: 1012,
|
||||||
label: "Claude Opus 4.5 (Thinking)",
|
label: "Claude Opus 4.5 (Thinking)",
|
||||||
},
|
},
|
||||||
|
ModelDef {
|
||||||
|
name: "gemini-3-pro",
|
||||||
|
ag_id: "MODEL_PLACEHOLDER_M8",
|
||||||
|
model_enum: 1008,
|
||||||
|
label: "Gemini 3 Pro (High)",
|
||||||
|
},
|
||||||
ModelDef {
|
ModelDef {
|
||||||
name: "gemini-3-pro-high",
|
name: "gemini-3-pro-high",
|
||||||
ag_id: "MODEL_PLACEHOLDER_M8",
|
ag_id: "MODEL_PLACEHOLDER_M8",
|
||||||
@@ -35,7 +41,7 @@ pub(crate) const MODELS: &[ModelDef] = &[
|
|||||||
label: "Gemini 3 Pro (High)",
|
label: "Gemini 3 Pro (High)",
|
||||||
},
|
},
|
||||||
ModelDef {
|
ModelDef {
|
||||||
name: "gemini-3-pro",
|
name: "gemini-3-pro-low",
|
||||||
ag_id: "MODEL_PLACEHOLDER_M7",
|
ag_id: "MODEL_PLACEHOLDER_M7",
|
||||||
model_enum: 1007,
|
model_enum: 1007,
|
||||||
label: "Gemini 3 Pro (Low)",
|
label: "Gemini 3 Pro (Low)",
|
||||||
|
|||||||
Reference in New Issue
Block a user