fix (provider): deprecated gemini oauth provider (#11223)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user