[feat] image generation: let gpt-image requests choose a quality level
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- python, typescript
- Domínio
- backend-api-design, full-stack
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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?
- Linguagem predominante
- TypeScript
- Estrelas
- 119
- Forks
- 16
- Merge médio
- 16h 13min
- PRs com merge (30d)
- 195
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ThinkFlowLab/OpenDirector
-
area:provider
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ThinkFlowLab/OpenDirector#477 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area:ci
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ThinkFlowLab/OpenDirector#411 ·
Mantenedores costumam responder em até 1 dia
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea:agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
ThinkFlowLab/OpenDirector#348 ·
Mantenedores costumam responder em até 1 dia
-
area:provider
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ThinkFlowLab/OpenDirector#311 ·
Mantenedores costumam responder em até 1 dia
-
area:desktop area:install help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
ThinkFlowLab/OpenDirector#475 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ThinkFlowLab/OpenDirector
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationTalvez já em andamento @roboclaw-bot assumiu hoje. Abertaclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
openclaw/openclaw#204323 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
virtue-initiative/virtue-initiative#953 ·
Mantenedores costumam responder em até 1 dia
-
needs-area-label
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
fumicode/bublys-org#261 ·
Mantenedores costumam responder em até 12 dias