Repository navigation
Add AI model selection (GPT-5.4 nano, Gemini 3.1 Flash-Lite, DeepInfra) + review fixes - #1
Merged
Merged
Conversation
- Bundle plugin-update-checker (pinned v5.7) into build.sh ZIPs; vendor/ is gitignored so auto-updates were missing from built releases. Build now fails if the header, constant, and README badge versions differ. - Keep settings and API key on deactivate; delete all plugin data on uninstall (multisite-aware). - Make "Auto-generate on upload" default to checked on fresh installs (the flag was only consumed by an endpoint nothing called). - REST generate/save endpoints check edit_post on the attachment so Editors/Authors can use the block-editor and media buttons; surface errors in the block editor instead of swallowing them. - Run auto-generation once per upload via wp_generate_attachment_metadata instead of on every updated_post_meta for each sub-size. - Apply the 4MB limit to the resized image actually sent to OpenAI. - Paginate Bulk/Review tabs; query alt via meta_query and scan titles with one lightweight SQL query instead of loading every attachment. - Remove the unused every_alt_logs table writes, legacy fulltext and HTTP-auth settings (plaintext password), and /get_tokens endpoint; add a version-gated upgrade routine that deletes the old options. - Make JS UI strings translatable, guard CSV export against formula injection, and warn when the stored key can no longer be decrypted. - Add GitHub Actions lint/build workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New Every_Alt_Providers registry for OpenAI, Google Gemini, and DeepInfra (DeepSeek V4.1 Flash, GLM-5.3-Flash). All use OpenAI- compatible chat completions with a base64 image, so one request path serves every model. - Replace retiring gpt-5-nano with gpt-5.4-nano; existing installs default to it on upgrade. - Store an encrypted API key per provider; validate each new key against the provider's models endpoint before saving anything. - Settings: model picker with published regular pricing, per-provider key instructions and links, Gemini free-tier data note, and DeepInfra privacy note (US/Canada hosting, zero data retention) with policy links. - Per-provider request details: token parameter name, OpenAI-only image detail hint, DeepInfra 16k output cap, minimal reasoning. - Record the model in the generation log and CSV export. - Replace everyalt_openai_model filter with everyalt_model; price filters now receive the model slug. - README: models & keys section, pricing, privacy, changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two commits:
1. Fixes from codebase review
build.shZIPs (auto-updates were missing from built releases); build fails on version mismatch/get_tokensendpoint2. AI model selection
gpt-5-nano(being retired) replaced bygpt-5.4-nano; existing installs switch automaticallyeveryalt_openai_modelfilter replaced byeveryalt_modelTest plan
./build.shZIP containsvendor/plugin-update-checker🤖 Generated with Claude Code