Skip to content

[Bug]: litellm pdf provider config seems wrong #1009

Description

@8de2fdb0

What happened?

Is the PDF_PROVIDER_CONFIGS litellm's supportsNative option supposed to be set to true?
based of the comment on openai-compatible it seems that there settings are swapped.

I also can't find a way to inject custom PDF_PROVIDER_CONFIGSs via the Neurolink.generate or any other exposed method.

litellm: {
maxSizeMB: 10,
maxPages: 100,
supportsNative: true,
requiresCitations: false,
apiType: "files-api",
},
"openai-compatible": {
maxSizeMB: 10,
maxPages: 100,
supportsNative: false, // LiteLLM is a proxy — underlying model may not support native PDF; default to safe text extraction
requiresCitations: false,
apiType: "files-api",
},

 * - Native PDF support for providers that accept PDF directly (Google AI, Vertex, OpenAI, Anthropic, Bedrock)
 * - PDF → Image conversion for providers that don't support native PDF (Azure, Mistral, Ollama)

Even the comment above indicates that, would be nice to have that customizable for litellm.

I can open an PR in case that is true.

AI Provider

Not applicable

Component

SDK

Steps to Reproduce

Use litellm as provider and attach a pdf.

Environment

- OS: linux
- Node.js version: 25
- NeuroLink version: release branch
- Package manager: pnpm

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions