-
[issue-4722] [FE] Fix pretty input view with system message last (#4764)
发布于
2026-01-15 14:18:24 +00:00 - [issue-4722] [FE] Filter for user messages in prettifyOpenAIMessageLogic
- Updated prettifyOpenAIMessageLogic to filter messages array for role === 'user' before selecting the last message
- Prevents system messages from being displayed in the pretty view when they appear last
- Added comprehensive test cases for system message handling
- Updated existing tests to include role field for OpenAI message format
-
handled Human messages as well
-
Handling lists of lists
下载附件