Enable image generation continuation#22223
Conversation
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b861e9ea81
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if let Some(revised_prompt) = self.revised_prompt.as_deref() | ||
| && !revised_prompt.is_empty() | ||
| { | ||
| body.push_str(&format!("\n- revised_prompt: {revised_prompt}")); |
There was a problem hiding this comment.
Escape revised_prompt before developer injection
revised_prompt is model/service output derived from the user's image request, but it is concatenated directly into a developer-role message. A prompt containing newlines or instructions is replayed on the continuation with developer priority, elevating untrusted text above the user. Store it as quoted/structured metadata or otherwise delimit/escape it.
Useful? React with 👍 / 👎.
Summary
Original ticket: https://www.notion.so/openai/Allow-image_gen-workflows-to-provide-post-generation-text-or-artifact-metadata-35d8e50b62b0817cadcafa1056c6e41c?source=copy_link
Tests