feat(files): add PDF constraints for OpenAI and URL references for Bedrock

This commit is contained in:
Greyson LaLonde
2026-01-23 09:59:52 -05:00
parent eff3a7d115
commit f7bd6292db

View File

@@ -222,6 +222,10 @@ OPENAI_CONSTRAINTS = ProviderConstraints(
max_size_bytes=20_971_520,
max_images_per_request=10,
),
pdf=PDFConstraints(
max_size_bytes=33_554_432, # 32 MB total across all file inputs
max_pages=100,
),
audio=AudioConstraints(
max_size_bytes=26_214_400, # 25 MB - whisper limit
max_duration_seconds=1500, # 25 minutes, arbitrary-ish, this is from the transcriptions limit
@@ -270,6 +274,7 @@ BEDROCK_CONSTRAINTS = ProviderConstraints(
max_size_bytes=3_840_000,
max_pages=100,
),
supports_url_references=True, # S3 URIs supported
)
AZURE_CONSTRAINTS = ProviderConstraints(