feat: Images API 参数扩展 — quality/input_fidelity/moderation#1
Merged
Conversation
适配 PackyAPI gpt-image-2 新文档(2026/5/10),扩展 Images API 参数透传。 后端: - client.py: _PARAM_KEYS 新增 input_fidelity、moderation 参数键 - generate.py: GenerateParams 新增 input_fidelity、moderation 可选字段 - generate.py: quality 默认值从 high 改为 auto(与 API 文档一致) 前端: - types/index.ts: GenerateParams 类型对齐新增字段 - generationStore.ts: 新增 quality、moderation 状态及 setter - generationStore.ts: startGeneration 透传 quality、moderation 到 API - RatioSelector.tsx: 新增 Quality(auto/low/medium/high)和 Moderation(auto/low)选择区段 - RatioSelector.tsx: Popover 改用 createPortal 渲染到 body,避免 overflow 裁剪 - InputArea.tsx: 工具栏行增加 overflow: visible - i18n: 中英文翻译新增 ratio.quality、ratio.moderation Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Owner
Author
|
/review |
|
Preparing review... |
Owner
Author
|
/review |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
ONEGAYI
pushed a commit
that referenced
this pull request
May 10, 2026
### 变更内容 - CHANGELOG.md: 新增 v1.7.0 版本条目,记录 Markdown/LaTeX 渲染、Images API 参数扩展、PR Agent CI - CLAUDE.md: 更新版本号至 1.7.0,更新文件树(新增 MarkdownRenderer 组件、PR Agent 配置、GitHub Actions),更新架构描述(Images API 参数透传、Markdown 渲染流程) - 版本号同步更新至 1.7.0(5 文件:pyproject.toml、server.py、package.json、Cargo.toml、tauri.conf.json) - README 排版修正 ### 关联 Close #1, Close #2 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_PARAM_KEYS和GenerateParams新增input_fidelity、moderationquality默认值从high改为auto(与 API 文档一致)Test plan
🤖 Generated with Claude Code