feat(codex_image): 在说明文字中,对提示词使用可展开的折叠块#239
Open
Hamster-Prime wants to merge 1 commit into
Open
Conversation
- Add expandableBlock() helper to wrap text in <blockquote expandable> - Prompt and revised prompt in image caption now use collapsible blocks - Prevents message overflow when prompts are very long
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
将图片生成结果中的提示词和修订提示词改为 Telegram 折叠块(
<blockquote expandable>)格式,避免长提示词导致消息过长溢出。Changes
expandableBlock()辅助函数,将文本包裹在<blockquote expandable>标签中Before
提示词直接内联显示,长文本会导致消息超出 Telegram 长度限制。
After
默认折叠,点击可展开,不影响阅读体验。