From 4d23903cbba96708f10533eef079a1ae3b37a643 Mon Sep 17 00:00:00 2001 From: fangkangmi Date: Tue, 20 Oct 2026 18:33:38 +0100 Subject: [PATCH] fix(mcp): annotate initial streaming turn completion --- litellm/responses/mcp/chat_completions_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/responses/mcp/chat_completions_handler.py b/litellm/responses/mcp/chat_completions_handler.py index 2915c814151..8eb7a995ff5 100644 --- a/litellm/responses/mcp/chat_completions_handler.py +++ b/litellm/responses/mcp/chat_completions_handler.py @@ -351,7 +351,7 @@ async def acompletion_with_mcp( return self._add_mcp_list_tools_to_chunk(chunk) return chunk - async def _finish_initial_turn(self): + async def _finish_initial_turn(self) -> None: await self._process_tool_calls() if self.tool_results and self.complete_response: await self._prepare_follow_up_call()