diff --git a/astrbot/core/provider/sources/gemini_source.py b/astrbot/core/provider/sources/gemini_source.py index 1f447c85bd..269b956a12 100644 --- a/astrbot/core/provider/sources/gemini_source.py +++ b/astrbot/core/provider/sources/gemini_source.py @@ -409,8 +409,6 @@ def append_or_extend( "content": message["content"], }, ) - if part.function_response: - part.function_response.id = message["tool_call_id"] parts = [part] append_or_extend(gemini_contents, parts, types.UserContent)