fix (provider): deprecated gemini oauth provider (#11223)

This commit is contained in:
Lifei Zhou
2026-08-14 09:33:43 +00:00
committed by GitHub
parent 705f30df47
commit 433d1b3c8f
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ impl goose_providers::base::ProviderDescriptor for GeminiCliProvider {
ProviderMetadata::new(
GEMINI_CLI_PROVIDER_NAME,
"Gemini CLI",
"[Deprecated: use gemini_oauth instead] Execute Gemini models via gemini CLI tool. Requires gemini CLI installed.",
"[Deprecated: use the Google or Vertex AI provider instead] Execute Gemini models via gemini CLI tool. Requires gemini CLI installed.",
GEMINI_CLI_DEFAULT_MODEL,
GEMINI_CLI_KNOWN_MODELS.to_vec(),
GEMINI_CLI_DOC_URL,
+1 -1
View File
@@ -934,7 +934,7 @@ impl goose_providers::base::ProviderDescriptor for GeminiOAuthProvider {
ProviderMetadata::new(
GEMINI_OAUTH_PROVIDER_NAME,
"Gemini",
"Sign in with your Google account to use Gemini models — no API key needed",
"[Deprecated: use the Google provider with a Gemini API key or Vertex AI instead] Sign in with your Google account to use Gemini models — no API key needed",
GEMINI_OAUTH_DEFAULT_MODEL,
GEMINI_OAUTH_KNOWN_MODELS.to_vec(),
GOOGLE_DOC_URL,
+1 -1
View File
@@ -114,7 +114,7 @@ async fn init_registry() -> RwLock<ProviderRegistry> {
);
registry.register::<GeminiCliProvider>(false);
registry.register_with_inventory::<GeminiOAuthProvider>(
true,
false,
Some(registrations::gemini_oauth_inventory()),
);
registry.register_with_inventory::<GithubCopilotProvider>(