Skip to content

PressHub AI Co-Pilot v2.3.5

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Sep 07:53
· 2 commits to main since this release
5c57aed

PressHub AI Co-Pilot v2.3.5

🔧 Enforce AI Provider Store Precedence & Fix Runtime Max Tokens Shadowing (Issue #122)

  • Resolved Runtime Max Tokens Shadowing: Fixed an issue where legacy options (presshub_ai_max_tokens_gemini, presshub_ai_temperature_*, presshub_ai_timeout_*) lingering in wp_options from prior versions shadowed and overrode tuning values configured in the Provider Store (wp_presshub_ai_providers).
  • Strict Resolution Precedence: Updated PressHub_AI_API_Client::resolve_module_config() to prioritize:
    1. Module-level option override (presshub_ai_{module}_max_tokens)
    2. Configured provider record from PressHub_AI_Provider_Store ($provider_record['max_tokens'])
    3. Class default (PressHub_AI_Provider_Defaults::default_max_tokens())
  • Constructor & Metadata Synchronization: Updated PressHub_AI_API_Client::__construct() to copy max_tokens, temperature, timeout, and default_model from the configured provider record, and updated current_request_meta() to read active provider tuning from the Provider Store.
  • Automated Idempotent Cleanup Migration: Added presshub_ai_migrate_purge_legacy_provider_tuning() to automatically purge obsolete flat tuning options from wp_options on upgrade and migrate uncustomized 16384 store records to 20000.

What's Changed

  • fix(provider): purge legacy max_tokens option shadowing and enforce Provider Store precedence by @eeftychiou in #123

Full Changelog: v2.3.4...v2.3.5