The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(create): qwen-image-edit ist jetzt im Seed und im Edit-Waehler erreichbar (R5-57, R5-58)
purple3536d941c0f3
diff --git a/src/components/create/experimental/ModelChip.tsx b/src/components/create/experimental/ModelChip.tsxindex f650e70b..bd1452b3 100644--- a/src/components/create/experimental/ModelChip.tsx+++ b/src/components/create/experimental/ModelChip.tsx@@ -1,5 +1,5 @@import { useCreateStore } from '../../../stores/createStore'-import { useCloudCatalogStore, defaultCloudModel, opPickerModels, modelCostHint } from '../../../stores/cloudCatalogStore'+import { useCloudCatalogStore, defaultCloudModel, opPickerModels, modelCostHint, isEditModel } from '../../../stores/cloudCatalogStore'import { useSettingsStore } from '../../../stores/settingsStore'import { useUIStore } from '../../../stores/uiStore'import { useContentPolicy } from '../../../hooks/useContentPolicy'@@ -62,7 +62,10 @@ function CloudModelChip() {// i2v; Video needs t2v (absent flag = capable, so today's dual-capable fleet// lists in full, and a future t2v-only model that sets i2v:false is excluded).const list =- intent === 'edit' ? models.filter((m) => m.kind === 'image' && m.edit)+ // R5-58: `m.edit` alone missed the 2.5.8 op-specialized edit endpoints+ // (qwen-image-edit carries `ops: ['edit']`, not `edit: true`), so the+ // picker never offered a model the catalog genuinely served.+ intent === 'edit' ? models.filter((m) => m.kind === 'image' && isEditModel(m)): intent === 'animate' ? models.filter((m) => m.kind === 'video' && m.i2v !== false): intent === 'video' ? models.filter((m) => m.kind === 'video' && m.t2v !== false): intent === 'character' ? opPickerModels('lora-train')diff --git a/src/lib/render/cloud-models.ts b/src/lib/render/cloud-models.tsindex 1d0f6999..112f7114 100644--- a/src/lib/render/cloud-models.ts+++ b/src/lib/render/cloud-models.ts@@ -12,6 +12,11 @@ export interface CloudModel {kind: RenderKind/** Supports the masked img2img 'edit' op (flux-dev only today). */edit?: boolean+ /** R5-66: an instruction-based edit endpoint that takes prompt + image and+ * needs no mask at all (Web parity: apps/web/lib/render/cloud-models.ts,+ * qwen-image-edit). Only meaningful on an `ops: ['edit']` model; classic+ * `edit: true` models (flux-dev) are always mask-required. */+ maskless?: boolean/** Video: renders text-to-video (the "Video" intent). Absent = yes; set false* on an i2v-only model to keep it out of the Video picker. */t2v?: boolean@@ -110,6 +115,12 @@ export const CLOUD_MODEL_SEED: CloudModel[] = [{ id: 'flux-dev-lora-ultra-fast', label: 'Flux Dev Fast + Character', kind: 'image', ops: ['generate'], lora: true, cfg: true },{ id: 'z-image-turbo-lora', label: 'Z-Image Turbo + Character', kind: 'image', ops: ['generate'], lora: true },{ id: 'z-image-base-lora', label: 'Z-Image + Character', kind: 'image', ops: ['generate'], lora: true },+ // R5-57/58: missing from this seed entirely, so the edit picker never+ // offered it and the model was unreachable until the live catalog fetch+ // landed. Label and maskless flag copied verbatim from uselu+ // apps/web/lib/render/cloud-models.ts.+ { id: 'qwen-image-lora', label: 'Qwen Image + Character', kind: 'image', ops: ['generate'], lora: true },+ { id: 'qwen-image-edit', label: 'Qwen Image Edit (no mask needed)', kind: 'image', ops: ['edit'], maskless: true },{ id: 'infinitetalk-fast', label: 'InfiniteTalk (photo avatar)', kind: 'video', ops: ['lipsync'], lipsync_source: 'image', t2v: false, i2v: false },{ id: 'p-video-avatar', label: 'P-Video Avatar (photo, fast)', kind: 'video', ops: ['lipsync'], lipsync_source: 'image', t2v: false, i2v: false },{ id: 'latentsync', label: 'LatentSync (resync a clip)', kind: 'video', ops: ['lipsync'], lipsync_source: 'video', t2v: false, i2v: false },diff --git a/src/stores/__tests__/cloudCatalogStore.test.ts b/src/stores/__tests__/cloudCatalogStore.test.tsindex f0871f1d..2a342917 100644--- a/src/stores/__tests__/cloudCatalogStore.test.ts+++ b/src/stores/__tests__/cloudCatalogStore.test.ts@@ -95,6 +95,22 @@ describe('cloudCatalogStore', () => {expect(defaultEditModel()?.id).toBe('flux-9')})+ // R5-58: qwen-image-edit serves 'edit' through `ops: ['edit']`, not+ // `edit: true`. isEditCapable and defaultEditModel used to check only the+ // classic flag, so this model existed in the seed and was still+ // unreachable from the edit picker and the submit-time fallback.+ it('R5-58: isEditCapable recognises an ops-based edit model too', () => {+ expect(isEditCapable('qwen-image-edit')).toBe(true)+ expect(isEditCapable('qwen-image')).toBe(false) // plain generate-only model+ })++ it('R5-58: qwen-image-edit is in the seed with the maskless flag Web sets', () => {+ const m = CLOUD_MODEL_SEED.find((x) => x.id === 'qwen-image-edit')+ expect(m).toBeDefined()+ expect(m?.ops).toContain('edit')+ expect(m?.maskless).toBe(true)+ })+describe('runCredits', () => {it('falls back to the quota figure before any catalog fetch (seed has no prices)', () => {expect(runCredits('image', 'generate', 'flux-schnell', undefined, 300)).toBe(300)diff --git a/src/stores/cloudCatalogStore.ts b/src/stores/cloudCatalogStore.tsindex 3c94b866..b5f7d9d1 100644--- a/src/stores/cloudCatalogStore.ts+++ b/src/stores/cloudCatalogStore.ts@@ -116,14 +116,24 @@ export function cloudModelById(id: string): CloudModel | undefined {return useCloudCatalogStore.getState().models.find((m) => m.id === id)}+// R5-58: a model serves 'edit' either the classic way (`edit: true`, e.g.+// flux-dev) or the 2.5.8 op-specialized way (`ops: ['edit']`, e.g.+// qwen-image-edit). `cloudModelSupportsOp` already branches on `m.ops` first+// so it got this right; `isEditCapable` and `defaultEditModel` below checked+// only `m.edit` and silently could not see an ops-based edit model at all.+export function isEditModel(m: CloudModel): boolean {+ return m.edit === true || m.ops?.includes('edit') === true+}+export function isEditCapable(id: string): boolean {- return cloudModelById(id)?.edit === true+ const m = cloudModelById(id)+ return m !== undefined && isEditModel(m)}/** First edit-capable image model in the catalog (flux-dev today) — the* submit-time fallback when the picker holds a t2i-only model for an edit. */export function defaultEditModel(): CloudModel | undefined {- return useCloudCatalogStore.getState().models.find((m) => m.kind === 'image' && m.edit)+ return useCloudCatalogStore.getState().models.find((m) => m.kind === 'image' && isEditModel(m))}// Video models that render text-to-video (the "Video" intent) / image-to-video