chore(guardrails): align cast-ok reason wording

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-24 06:48:27 +00:00
parent e0ff2476f0
commit ff8aa061d0

View file

@ -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(