From 371f7e3cf826aa802d76f182d39348aef8594ca4 Mon Sep 17 00:00:00 2001 From: Zhibo Zhang Date: Sun, 1 Nov 2026 15:29:22 +0800 Subject: [PATCH] types(router): include OCR as a model mode Signed-off-by: Zhibo Zhang <24061721@hdu.edu.cn> --- litellm/types/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/router.py b/litellm/types/router.py index 41a986837da..b716ebf0223 100644 --- a/litellm/types/router.py +++ b/litellm/types/router.py @@ -1050,7 +1050,7 @@ class ModelGroupInfo(LiteLLMBaseModel): input_cost_per_pixel: float | None = None mode: ( str - | Literal["chat", "embedding", "completion", "image_generation", "audio_transcription", "rerank", "moderations"] + | Literal["chat", "embedding", "completion", "image_generation", "audio_transcription", "ocr", "rerank", "moderations"] | None ) = Field(default="chat") tpm: int | None = None