Skip to content

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.

test(create-3d): the prompt-free views of 3D are its picture and video ways

purple59e0aeacc9af
diff --git a/src/hooks/__tests__/useCloudCreate-kein-rest-prompt.test.ts b/src/hooks/__tests__/useCloudCreate-kein-rest-prompt.test.ts
index e030228f..747f0576 100644
--- a/src/hooks/__tests__/useCloudCreate-kein-rest-prompt.test.ts
+++ b/src/hooks/__tests__/useCloudCreate-kein-rest-prompt.test.ts
@@ -171,8 +171,13 @@ describe('Ansichten ohne Promptfeld', () => {
})
it('kein Studio-Modell einer Ansicht ohne Promptfeld verlangt einen Prompt', () => {
- for (const meta of INTENTS.filter((m) => !intentTakesPrompt(m.id as CreateIntent))) {
- for (const m of intentPickerModels(meta.id as CreateIntent)) {
+ // 3D has a prompt field "From text" only: its picture and video ways run
+ // their own models (studioIntentOf), and those must not ask for words.
+ const views = INTENTS.filter((m) => !intentTakesPrompt(m.id as CreateIntent))
+ .flatMap((m) => (m.id === '3d' ? (['3d-image', '3d-video'] as const) : [m.id as CreateIntent]))
+ for (const view of views) {
+ const meta = { id: view }
+ for (const m of intentPickerModels(view)) {
const studio = STUDIO_MODELS[m.id]
if (!studio) continue
expect(studioSchema(m.id).required ?? [], `${meta.id} ${m.id}`).not.toContain(studio.promptField ?? 'prompt')