🐛 Fix(Gemini LLM): Support Gemini 0.2.x plugin on agent app
In `base_app_runner.py` and `easy_ui_based_generate_task_pipeline.py`, modified to handle cases where `delta.message.content` is not only a string but also a list containing objects like `TextPromptMessageContent`. This allows supporting diverse LLM output formats. The previous code assumed that LLM responses would always be a single string. However, multimodal models or models generating more complex responses might return content as a list of objects, such as `TextPromptMessageContent`. This change allows the application to correctly process and display these new forms of responses to the user. This enhances support for future LLM feature extensions. fixes #20204pull/20794/head
parent
65c7c01d90
commit
9146046e0f
Loading…
Reference in New Issue