From ff8aa061d04127ae96e96980d413f5be18b55afc Mon Sep 17 00:00:00 2001 From: yucheng Date: Thu, 24 Sep 2026 06:48:27 +0000 Subject: [PATCH] chore(guardrails): align cast-ok reason wording Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/llms/openai/chat/guardrail_translation/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/openai/chat/guardrail_translation/handler.py b/litellm/llms/openai/chat/guardrail_translation/handler.py index 095a3f29d2b..041d2fe1bfd 100644 --- a/litellm/llms/openai/chat/guardrail_translation/handler.py +++ b/litellm/llms/openai/chat/guardrail_translation/handler.py @@ -317,7 +317,7 @@ class OpenAIChatCompletionsHandler(BaseTranslation): inputs["tools"] = cast("list[ChatCompletionToolParam]", tools) # cast-ok: raw request json model: Final = data.get("model") if model: - inputs["model"] = cast("str", model) # cast-ok: base forwarded the raw model value + inputs["model"] = cast("str", model) # cast-ok: raw request json return inputs, structured_messages, scoped_message_indices def _not_run_reason(