Hi everyone,
When building applications with the OpenAI API, long structured prompts often clutter the conversation UI once they’re sent. For developer-facing dashboards or custom chat interfaces, it would be useful if there were a standardized way to collapse/expand submitted prompts.
A simple toggle or dropdown could:
-
Improve readability in chat UIs with long context windows.
-
Help users working with structured/system prompts or chain-of-thought–style inputs.
-
Keep the conversation view focused on responses while still allowing access to the original prompt when needed.
I’m curious if others have built similar UI patterns into their apps. Is there any best practice or recommended approach for handling expandable/collapsible prompt blocks when integrating with the API?
Thanks!
