Skip to content

Commit 2b7f57a

Browse files
authored
improvement(providers): tighten Gemini and vLLM agent-attachment ceilings (#5095)
A live-doc audit of the merged large-file feature found two ceilings that were higher than the provider actually accepts: - Gemini: 100MB -> 50MB. Gemini hard-caps PDFs at 50MB, so a 50-100MB PDF passed our gate, got uploaded + polled, then failed at generateContent. 50MB respects the documented limit and is more memory-safe. - vLLM: 50MB -> 25MB. vLLM's default image-fetch timeout is 5s; a 50MB remote fetch routinely exceeds it. 25MB aligns with that reality and matches Baseten (the other vLLM-backed provider).
1 parent 2c1392e commit 2b7f57a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/providers/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
195195
},
196196
vllm: {
197197
id: 'vllm',
198-
fileAttachment: { maxBytes: 50 * 1024 * 1024, strategy: 'remote-url' },
198+
fileAttachment: { maxBytes: 25 * 1024 * 1024, strategy: 'remote-url' },
199199
name: 'vLLM',
200200
icon: VllmIcon,
201201
description: 'Self-hosted vLLM with an OpenAI-compatible API',
@@ -1319,7 +1319,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
13191319
},
13201320
google: {
13211321
id: 'google',
1322-
fileAttachment: { maxBytes: 100 * 1024 * 1024, strategy: 'files-api' },
1322+
fileAttachment: { maxBytes: 50 * 1024 * 1024, strategy: 'files-api' },
13231323
name: 'Google',
13241324
description: "Google's Gemini models",
13251325
defaultModel: 'gemini-2.5-pro',

0 commit comments

Comments
 (0)