mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #2310] [MERGED] fix(gemini): ensure consistent response format to fix 'str' object has no attribute 'get' error #2395
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/2310
Author: @majiayu000
Created: 12/22/2025
Status: ✅ Merged
Merged: 12/22/2025
Merged by: @crazywoola
Base:
main← Head:fix/gemini-str-object-error-29977📝 Commits (2)
6e5021afix(gemini): ensure consistent response format to fix 'str' object has no attribute 'get' errore848277fix: ci📊 Changes
3 files changed (+167 additions, -8 deletions)
View changed files
📝
models/gemini/manifest.yaml(+4 -4)📝
models/gemini/models/llm/llm.py(+4 -4)📝
models/gemini/models/tests/test_llm.py(+159 -0)📄 Description
Summary
_parse_partsfor all models in non-streaming response handlingAssistantPromptMessage(content=response.text)where content is a stringPromptMessageContentTest plan
_handle_generate_responsemethodFixes langgenius/dify#29977
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.