cloudflare / cloudflare/cloudflare-os

Support PDFs as images on Ollama compatible backends

Open
#43 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9.9k
Forks
1.2k
Avg merge
1d 20h
Merged PRs (30d)
107

Description

For providers that do not support the `file` type in the responses API but do allow the `image` type, it should be possible for PDF pages to be automatically converted to images.

The llama.cpp built in server UI already does this, and it could easily be done client-side.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how PDF inputs and the responses API handle providers that reject the `file` type, then compare the llama.cpp built-in server UI behavior. The work is done when PDF pages are automatically converted to `image` inputs for compatible providers that lack `file` support, without changing providers that already accept files.

Written by the indexing model from the issue text.

Assessment

Tech stack
ollama, typescript
Domain
ai, api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.