fix: remove deprecated flux-1-dev model from Cloudflare image config
FLUX.1 [dev] was removed from Cloudflare Workers AI in April 2026, returning HTTP 400 "No route for that URI". This removes it from the static model picker list and pricing calculations. Any saved setting referencing flux-1-dev gracefully falls through to flux-1-schnell via the null-coalesce in resolve_model(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -81,6 +81,7 @@ class PRAutoBlogger_Admin_Page {
|
||||
'testingText' => __( 'Testing...', 'prautoblogger' ),
|
||||
'testText' => __( 'Test Connections', 'prautoblogger' ),
|
||||
// Static Cloudflare image models for the picker (no registry API for these).
|
||||
// FLUX.1 [dev] removed from Cloudflare Workers AI in April 2026.
|
||||
'cloudflareModels' => [
|
||||
[
|
||||
'id' => 'flux-1-schnell',
|
||||
@@ -94,18 +95,6 @@ class PRAutoBlogger_Admin_Page {
|
||||
'deprecated' => false,
|
||||
'description' => __( 'Fast + cheap (4 steps). Default choice.', 'prautoblogger' ),
|
||||
],
|
||||
[
|
||||
'id' => 'flux-1-dev',
|
||||
'name' => 'FLUX.1 [dev]',
|
||||
'provider' => 'cloudflare',
|
||||
'context_length' => 0,
|
||||
'input_price_per_m' => 0,
|
||||
'output_price_per_m' => 0,
|
||||
'cost_per_image' => 0.0028,
|
||||
'capabilities' => [ 'cloudflare_image' ],
|
||||
'deprecated' => false,
|
||||
'description' => __( 'Higher quality (20 steps), ~4× cost.', 'prautoblogger' ),
|
||||
],
|
||||
],
|
||||
] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user