From 36a8485a0c52ccbdfd52b4f48901461ad13f1d4c Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Tue, 19 May 2026 07:31:28 +0000 Subject: [PATCH] fix(oci/generic): silence mypy assignment error on dynamic finish_reason --- litellm/llms/oci/chat/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/oci/chat/generic.py b/litellm/llms/oci/chat/generic.py index d0bae089a60..c860c3fefd5 100644 --- a/litellm/llms/oci/chat/generic.py +++ b/litellm/llms/oci/chat/generic.py @@ -332,7 +332,7 @@ def handle_generic_response( elif oci_finish_reason == "TOOL_CALLS": model_response.choices[0].finish_reason = "tool_calls" # type: ignore[union-attr] elif oci_finish_reason is not None: - model_response.choices[0].finish_reason = oci_finish_reason # type: ignore[union-attr] + model_response.choices[0].finish_reason = oci_finish_reason # type: ignore[union-attr,assignment] oci_usage = completion_response.chatResponse.usage reasoning_tokens: Optional[int] = None