Linux 软件免费装
Banner图

YukDigitalz Connector for Google AI

开发者 shihela
更新时间 2026年11月21日 20:34
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gemini google ai ai connector failover gemini 4

下载

2.0.0 1.0.0

详情介绍:

Solves the primary challenges faced by Google Gemini API users on WordPress: Error 503 (Service Unavailable - Capacity / High Demand), Error 429 (Rate Limit / Quota Exceeded), and Error 404 (Retired Model Endpoints). As a pure, non-intrusive provider connector & failover engine, YukDigitalz Connector for Google AI brings the full Gemini 4 (gemini-4-hydrogen, gemini-4-argon, gemini-4-neon, gemini-4-carbon) and Gemini 3 (gemini-3.8-flash, gemini-3.5-flash-lite) lineup into WordPress and integrates seamlessly with the WordPress Core AI Client framework (wp_ai_providers, wp_ai_client_generate, wp_ai_client_default_model). It works alongside WordPress Connectors and 3rd-party BYOK AI plugins without taking over database options, altering prompts, or blocking API keys. Key Features:

安装:

  1. Upload the yukdigitalz-connector-for-google-ai plugin folder to the /wp-content/plugins/ directory, or install via the WordPress Plugins menu.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Open the YukDigitalz Connector AI menu in the admin sidebar.
  4. Enter your Gemini API Key under the Gemini API & Models tab (or define YUKDICONFO_API_KEY / GEMINI_API_KEY in wp-config.php, or use the official Connectors plugin).
  5. Select your Primary Model (e.g. gemini-4-hydrogen), configure Thinking Level and Generation Defaults, and arrange Fallback Models under Auto-Failover & Cooldown.

升级注意事项:

2.0.0 Major Enterprise Architecture Upgrade: Native Gemini 4 & Gemini 3 model catalog, Thinking Levels (thinkingConfig), AES-256-GCM encryption, x-goog-api-key header auth, smart error classification, and critical AJAX bug fixes. Retired Gemini 1.5/2.0 models are automatically migrated.

常见问题:

How does this connector plugin interact with WordPress Connectors and BYOK plugins?

It operates as a pure companion connector. It never overwrites database options of other plugins or modifies prompt contents. It only intercepts outgoing Gemini generateContent calls when enabled and handles failover retries seamlessly.

How do I use YukDigitalz Connector for Google AI in my theme or another plugin?

Simply call the global function yukdiconfo_generate( 'Your prompt here', array( 'thinking_level' => 'medium' ) ). The engine will automatically manage model selection, thinking configuration, and failover.

Is it safe to store API Keys in the database?

Yes. All API keys are encrypted using authenticated OpenSSL AES-256-GCM encryption tied to your WordPress salt keys, and transmitted via the x-goog-api-key HTTP header. You can also define keys in wp-config.php for enterprise-grade immutability.

What happens to retired Gemini 1.5 or Gemini 2.0 models when upgrading to 2.0.0?

Version 2.0.0 includes an automatic migration routine that safely maps shut-down or superseded model IDs (gemini-1.5-*, gemini-2.0-*, gemini-2.5-*, gemini-3.7-flash) to their active Gemini 4 / Gemini 3 equivalents so your site never experiences 404 outages.

更新日志:

2.0.0 1.0.0