Skip to content

Commit 3be434d

Browse files
committed
Add PDF support to OpenRouter provider for Opus 4.7
Adds KilnMimeType.PDF to multimodal_mime_types and sets multimodal_requires_pdf_as_image=True (OpenRouter's PDF routing through Mistral OCR breaks LiteLLM parsing, so PDFs must be sent as images). https://claude.ai/code/session_01Xnfzt91McoMdqaiRv1g6xg
1 parent f968e0e commit 3be434d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/core/kiln_ai/adapters/ml_model_list.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,9 @@ class KilnModel(BaseModel):
19361936
supports_doc_extraction=True,
19371937
supports_vision=True,
19381938
multimodal_capable=True,
1939+
multimodal_requires_pdf_as_image=True,
19391940
multimodal_mime_types=[
1941+
KilnMimeType.PDF,
19401942
KilnMimeType.TXT,
19411943
KilnMimeType.MD,
19421944
KilnMimeType.JPG,

0 commit comments

Comments
 (0)