[feat] image generation: let gpt-image requests choose a quality level
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- TypeScript
- スター
- 119
- フォーク
- 16
- 平均マージ
- 16時間 13分
- マージ済み PR(30日)
- 195
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ThinkFlowLab/OpenDirector のほかの issue
-
area:provider
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ThinkFlowLab/OpenDirector#477 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:ci
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ThinkFlowLab/OpenDirector#411 ·
メンテナーはふだん 1 日以内に返信
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:agent
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ThinkFlowLab/OpenDirector#348 ·
メンテナーはふだん 1 日以内に返信
-
area:provider
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ThinkFlowLab/OpenDirector#311 ·
メンテナーはふだん 1 日以内に返信
-
area:desktop area:install help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
ThinkFlowLab/OpenDirector#475 ·
メンテナーはふだん 1 日以内に返信
ThinkFlowLab/OpenDirector の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verification対応中かも @roboclaw-bot が今日担当しました。 オープンclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
openclaw/openclaw#204323 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
virtue-initiative/virtue-initiative#953 ·
メンテナーはふだん 1 日以内に返信
-
needs-area-label
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
fumicode/bublys-org#261 ·
メンテナーはふだん 12 日以内に返信