[feat] image generation: let gpt-image requests choose a quality level
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python, typescript
- Área
- backend-api-design, full-stack
Línea de trabajo
Start with domain/input_rules.py and the generation parameter contract, then trace how parameters pass through application/creation_generation.py and integrations/providers.py. Read the src/canvas parameter panel and its zh-CN and en-US strings. Done means quality is selectable for gpt-image, reaches the provider and execution snapshot, and the listed acceptance criteria pass; image tools remain an open question.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Goal and scope
The OpenAI gpt-image generation and edit endpoints accept quality (low / medium / high / auto), and both output and cost are tiered by it. OpenDirector never sends this parameter, so the choice is left entirely to OpenAI's auto. On the latest origin/main (520ce9ed), a request shaped exactly like a generation node's request for gpt-image-2 (1024×1024, short prompt) came back with quality: low, using the same 196 output image tokens as an explicit low request. Users cannot ask for high quality for final assets, nor pin low quality for drafts to keep costs predictable.
This change adds a quality option for the openai-gpt-image profile, defaulting to auto so existing requests stay the same.
User flow and key rules
- The image node parameter panel shows "Quality: Auto / Low / Medium / High" only for gpt-image models. Other services do not show it and never send
quality. - The selected quality is stored in the generation spec and fixed in the job's execution snapshot, so retries and recovery reuse it.
- The Agent sets quality through the same generation parameter, equivalent to the UI entry.
- Image tools (smart edit, outpaint, etc.) keep the default for now (see open questions).
Implementation impact
domain/input_rules.py: declare the selectable quality levels foropenai-gpt-image.- Generation parameter contract: add the field and regenerate
src/contracts/generated.ts; pass it throughapplication/creation_generation.pyandintegrations/providers.py. src/canvasparameter panel: add the option with zh-CN and en-US strings.
Acceptance criteria
- Choosing "High" sends
quality=highand the response'squalitymatches; "Auto" sends the same request as today. - Non-gpt-image services do not show the option and do not send
quality. - Quality is recorded in the execution snapshot and survives reopening the project and retrying.
- Both the UI and the Agent can set it; zh-CN and en-US strings are complete and
npm run check:i18npasses.
Open questions
- Should image tools (smart edit, outpaint, etc.) also expose quality, or always use the default?
- Lenguaje dominante
- TypeScript
- Estrellas
- 119
- Forks
- 16
- Merge medio
- 16 h 13 min
- PR fusionados (30 d)
- 195
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ThinkFlowLab/OpenDirector
-
area:provider
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ThinkFlowLab/OpenDirector#477 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:ci
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ThinkFlowLab/OpenDirector#411 ·
Los mantenedores suelen responder en 1 día
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea:agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ThinkFlowLab/OpenDirector#348 ·
Los mantenedores suelen responder en 1 día
-
area:provider
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ThinkFlowLab/OpenDirector#311 ·
Los mantenedores suelen responder en 1 día
-
area:desktop area:install help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ThinkFlowLab/OpenDirector#475 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ThinkFlowLab/OpenDirector
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationPosiblemente ocupada @roboclaw-bot la tomó hoy. Abiertoclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
openclaw/openclaw#204323 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
virtue-initiative/virtue-initiative#953 ·
Los mantenedores suelen responder en 1 día
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
fumicode/bublys-org#261 ·
Los mantenedores suelen responder en 12 días