fix(gemini): re-sanitize api_key after autopatcher re-write
This commit is contained in:
@@ -81,7 +81,7 @@ npm-пакет содержит все 13 патчей (proxy URLs, model defaul
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.bashrc
|
||||
echo 'export GEMINI_API_KEY="YOUR_API_KEY"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
@@ -100,16 +100,16 @@ EOF
|
||||
|
||||
**macOS (zsh — default):**
|
||||
```bash
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.zshrc
|
||||
echo 'export GEMINI_API_KEY="YOUR_API_KEY"' >> ~/.zshrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.zshrc
|
||||
source ~/.zshrc
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "YOUR_API_KEY", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
|
||||
$env:GEMINI_API_KEY = "ClauderAPI2"
|
||||
$env:GEMINI_API_KEY = "YOUR_API_KEY"
|
||||
$env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io"
|
||||
$d = "$env:USERPROFILE\.gemini"; New-Item -ItemType Directory -Force -Path $d | Out-Null
|
||||
[System.IO.File]::WriteAllText("$d\settings.json", '{"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}}')
|
||||
@@ -117,7 +117,7 @@ $d = "$env:USERPROFILE\.gemini"; New-Item -ItemType Directory -Force -Path $d |
|
||||
|
||||
**Windows (CMD):**
|
||||
```cmd
|
||||
setx GEMINI_API_KEY "ClauderAPI2"
|
||||
setx GEMINI_API_KEY "YOUR_API_KEY"
|
||||
setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io"
|
||||
mkdir "%USERPROFILE%\.gemini" 2>nul
|
||||
echo {"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}} > "%USERPROFILE%\.gemini\settings.json"
|
||||
@@ -226,20 +226,20 @@ iwr "https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/u
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
export GEMINI_API_KEY="ClauderAPI2"
|
||||
export GEMINI_API_KEY="YOUR_API_KEY"
|
||||
export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "YOUR_API_KEY", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
|
||||
# Перезапустите PowerShell
|
||||
```
|
||||
|
||||
**Windows (CMD):**
|
||||
```cmd
|
||||
setx GEMINI_API_KEY "ClauderAPI2"
|
||||
setx GEMINI_API_KEY "YOUR_API_KEY"
|
||||
setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io"
|
||||
```
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ npm-пакет содержит все 13 патчей (proxy URLs, model defaul
|
||||
|
||||
**Linux:**
|
||||
```bash
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.bashrc
|
||||
echo 'export GEMINI_API_KEY="YOUR_API_KEY"' >> ~/.bashrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
|
||||
source ~/.bashrc
|
||||
|
||||
@@ -100,7 +100,7 @@ EOF
|
||||
|
||||
**macOS (zsh — default):**
|
||||
```bash
|
||||
echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.zshrc
|
||||
echo 'export GEMINI_API_KEY="YOUR_API_KEY"' >> ~/.zshrc
|
||||
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.zshrc
|
||||
source ~/.zshrc
|
||||
mkdir -p ~/.gemini
|
||||
@@ -118,9 +118,9 @@ EOF
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "YOUR_API_KEY", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
|
||||
$env:GEMINI_API_KEY = "ClauderAPI2"
|
||||
$env:GEMINI_API_KEY = "YOUR_API_KEY"
|
||||
$env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io"
|
||||
$d = "$env:USERPROFILE\.gemini"
|
||||
New-Item -ItemType Directory -Force -Path $d | Out-Null
|
||||
@@ -129,7 +129,7 @@ New-Item -ItemType Directory -Force -Path $d | Out-Null
|
||||
|
||||
**Windows (CMD):**
|
||||
```cmd
|
||||
setx GEMINI_API_KEY "ClauderAPI2"
|
||||
setx GEMINI_API_KEY "YOUR_API_KEY"
|
||||
setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io"
|
||||
if not exist "%USERPROFILE%\.gemini" mkdir "%USERPROFILE%\.gemini"
|
||||
> "%USERPROFILE%\.gemini\settings.json" echo {"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}}
|
||||
@@ -205,20 +205,20 @@ iwr "https://git.sensey24.ru/aibot777/unlimitedcoding/raw/branch/master/gemini/u
|
||||
|
||||
**Linux / macOS:**
|
||||
```bash
|
||||
export GEMINI_API_KEY="ClauderAPI2"
|
||||
export GEMINI_API_KEY="YOUR_API_KEY"
|
||||
export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"
|
||||
```
|
||||
|
||||
**Windows (PowerShell):**
|
||||
```powershell
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "YOUR_API_KEY", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
|
||||
# Перезапустите PowerShell
|
||||
```
|
||||
|
||||
**Windows (CMD):**
|
||||
```cmd
|
||||
setx GEMINI_API_KEY "ClauderAPI2"
|
||||
setx GEMINI_API_KEY "YOUR_API_KEY"
|
||||
setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io"
|
||||
```
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"base_url": "https://ai.37-187-136-86.sslip.io",
|
||||
"api_key": "ClauderAPI2",
|
||||
"api_key": "YOUR_API_KEY",
|
||||
"default_model": "gemini-3.1-pro-preview",
|
||||
"internal_flash_model": "gemini-3-flash-preview",
|
||||
"models": [
|
||||
@@ -18,5 +18,6 @@
|
||||
"target_version": "0.39.1",
|
||||
"telemetry_enabled": false,
|
||||
"npm_package": "@google/gemini-cli",
|
||||
"npm_registry": "https://npm.sensey24.ru"
|
||||
"npm_registry": "https://npm.sensey24.ru",
|
||||
"_note": "Production api_key lives in PRIVATE unlimitedcoding-config repo."
|
||||
}
|
||||
Reference in New Issue
Block a user