| 开发者 | shihela |
|---|---|
| 更新时间 | 2026年11月21日 20:34 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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:
gemini-4-hydrogen, gemini-4-argon, gemini-4-neon, gemini-4-carbon, gemini-3.8-flash, gemini-3.5-flash-lite, plus live model syncing from Google AI Studio and custom fine-tuned model IDs.thinkingConfig.thinkingLevel): Control internal reasoning depth (default, low, medium, high, xhigh) globally, per REST API call, or via yukdiconfo_generate(), with multi-part thought separation and thoughtsTokenCount tracking.wp_ai_providers, wp_ai_client_generate) to register Google Gemini as an active provider for core and third-party plugins.400 (fail fast), 401/403 (instant API key rotation), 404 (instant retired-model failover), 429 (key pool rotation then model fallback), and 503/500/timeout (circuit breaker + backoff retry).x-goog-api-key — never exposing keys in URL query strings), and wp-config.php constants (YUKDICONFO_API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY).yukdiconfo_generate(), Structured Output (response_mime_type / response_schema), Tools/Grounding support, filter hooks, and REST API namespace (/wp-json/yukdiconfo/v1/generate, /models, /status).yukdigitalz-connector-for-google-ai plugin folder to the /wp-content/plugins/ directory, or install via the WordPress Plugins menu.YUKDICONFO_API_KEY / GEMINI_API_KEY in wp-config.php, or use the official Connectors plugin).gemini-4-hydrogen), configure Thinking Level and Generation Defaults, and arrange Fallback Models under Auto-Failover & Cooldown.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.
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.
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.
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.
gemini-4-hydrogen, gemini-4-argon, gemini-4-neon, gemini-4-carbon) and active Gemini 3 models (gemini-3.8-flash, gemini-3.5-flash-lite), removing shut-down Gemini 1.5 and 2.0 defaults with automatic upgrade migration.thinkingConfig.thinkingLevel (default, low, medium, high, xhigh) support, multi-part response parsing that separates internal thought parts from final text, and thoughts_tokens telemetry tracking.yukdiconfo/v1 for strict WordPress.org compliance; added thinking_level, top_p, response_mime_type, response_schema, and tools support.?key= query strings to x-goog-api-key headers, removed encrypted key payloads from AJAX responses, and removed uncached wp_options wildcard scans.ajax_test_key() and ajax_fetch_models(), fixed boolean toggle persistence for Third-Party Interceptor and Circuit Breaker, fixed duplicate passive telemetry logging, and fixed hardcoded 8-second timeout on intercepted requests.