Skip to content

Commit c7cfba4

Browse files
CLI: add provider deps (litellm, openai, anthropic) — same models as server
Fixes #5 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3af6987 commit c7cfba4

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ uv tool install git+https://github.com/rithulkamesh/docproc.git
102102
pip install git+https://github.com/rithulkamesh/docproc.git
103103
```
104104

105-
Then `docproc --file input.pdf -o output.md`. Requires Ollama with a vision model (`ollama pull llava && ollama serve`). Use `docproc.cli.yaml` or `primary_ai: ollama` in `docproc.yaml`.
105+
Then `docproc --file input.pdf -o output.md`. CLI uses the same config and providers as the server (OpenAI, Azure, Anthropic, Ollama, LiteLLM). For Ollama: `ollama pull llava && ollama serve` and use `docproc.cli.yaml` or `primary_ai: ollama`.
106106

107107
### Server (API + RAG + frontend)
108108

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ dependencies = [
2121
"pillow>=11.1.0,<12",
2222
"httpx>=0.27",
2323
"pyyaml>=6.0",
24+
# Providers — CLI uses same models as server (OpenAI, Azure, Anthropic, Ollama, LiteLLM)
25+
"litellm>=1.30.0",
26+
"openai>=1.0",
27+
"anthropic>=0.18",
2428
]
2529

2630
[project.optional-dependencies]
2731
server = [
2832
"fastapi>=0.109",
2933
"uvicorn>=0.27",
3034
"python-multipart>=0.0.6",
31-
"litellm>=1.30.0",
32-
"openai>=1.0",
33-
"anthropic>=0.18",
3435
"pgvector>=0.2.0",
3536
"psycopg2-binary>=2.9.0",
3637
"qdrant-client>=1.7",

uv.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)