Clarify Gemini OAuth as Google Cloud

Rename the Gemini OAuth provider surface to Google Cloud Gemini so the OAuth provider list points users toward the required Google Cloud project setup.

Align model-provider metadata, usage-plan copy, README wording, and static assertions while keeping the Gemini API OAuth mechanics unchanged.
This commit is contained in:
Alessandro 2026-06-23 17:30:11 +02:00
parent 617adaf8a2
commit 5c5dc07f92
5 changed files with 9 additions and 8 deletions

View file

@ -25,7 +25,7 @@ OAuth-backed model providers do not require users to enter API keys. Agent Zero
- Exchanges the GitHub access token for a Copilot API token.
- Stores credentials under `usr/plugins/_oauth/github_copilot/auth.json`.
### Google Gemini API (`gemini_api_oauth`)
### Google Cloud Gemini (`gemini_api_oauth`)
- Uses Google's OAuth authorization-code flow with PKCE.
- Requires a user-provided Google Cloud OAuth client with the Generative Language API enabled.
@ -41,7 +41,7 @@ OAuth-backed model providers do not require users to enter API keys. Agent Zero
## Usage Plan Metadata
The status API exposes `usage_plan_catalog` for subscription and billing context. It covers only connectable providers: Codex, GitHub Copilot, Google Gemini API, and xAI Grok.
The status API exposes `usage_plan_catalog` for subscription and billing context. It covers only connectable providers: Codex, GitHub Copilot, Google Cloud Gemini, and xAI Grok.
The same status response also includes `oauth_accounts`, a compact summary used by the settings modal, welcome discovery card, and onboarding wizard. Keep that summary provider-registry driven so new OAuth providers appear consistently across those surfaces.

View file

@ -16,7 +16,7 @@ chat:
kwargs:
api_base: "http://127.0.0.1/oauth/github-copilot/v1"
gemini_api_oauth:
name: Google Gemini API Account
name: Google Cloud Gemini Account
litellm_provider: openai
api_key_mode: oauth
models_list:

View file

@ -69,8 +69,8 @@ class GeminiApiOAuthProvider:
base_path = cfg["proxy_base_path"]
return OAuthProviderMetadata(
provider_id=GEMINI_API_PROVIDER_ID,
display_name="Google Gemini API",
short_name="Gemini API",
display_name="Google Cloud Gemini",
short_name="Google Cloud",
model_provider_id=GEMINI_API_PROVIDER_ID,
icon="google",
auth_flow="browser_pkce",

View file

@ -57,10 +57,10 @@ USAGE_PLAN_CATALOG: dict[str, dict[str, Any]] = {
},
GEMINI_API_PROVIDER_ID: {
"provider_id": GEMINI_API_PROVIDER_ID,
"display_name": "Google Gemini API",
"display_name": "Google Cloud Gemini",
"implemented": True,
"plans": [
{"id": "oauth_cloud_project", "label": "OAuth Cloud project", "billing": "Google Cloud project", "usage": "Official OAuth access using a user-provided Google Cloud OAuth client."},
{"id": "oauth_cloud_project", "label": "Google Cloud project", "billing": "Google Cloud project", "usage": "Official OAuth access using a user-provided Google Cloud OAuth client."},
{"id": "api_key", "label": "API key", "billing": "Gemini API pricing", "usage": "Standard Gemini API key access through Google AI Studio or Google Cloud."},
{"id": "vertex_ai", "label": "Vertex AI", "billing": "Google Cloud", "usage": "Enterprise Gemini API access through Vertex AI projects and IAM."},
],