Skip to content

Add /vllm and /mistral passthrough endpoints #10002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 15, 2025

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Apr 15, 2025

  • feat(llm_passthrough_endpoints.py): support mistral passthrough

Closes #9051

  • feat(llm_passthrough_endpoints.py): initial commit for adding vllm passthrough route

  • feat(vllm/common_utils.py): add new vllm model info route

make it possible to use vllm passthrough route via factory function

Example 1: Call Mistral OCR

curl -L -X POST 'http://0.0.0.0:4000/mistral/v1/ocr' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-1234' \
-d '{
    "model": "mistral-ocr-latest",
    "document": {
        "type": "image_url",
        "image_url": "https://raw.githubusercontent.com/mistralai/cookbook/refs/heads/main/mistral/ocr/receipt.png"
    }

}'

Example 2: Call VLLM /metrics endpoint

curl -L -X GET 'http://0.0.0.0:4000/vllm/metrics' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer sk-1234' \

Copy link

vercel bot commented Apr 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2025 5:06am

@krrishdholakia krrishdholakia merged commit 9b0f871 into main Apr 15, 2025
9 of 42 checks passed
@krrishdholakia krrishdholakia deleted the litellm_dev_04_14_2025_p3 branch April 15, 2025 05:06
@krrishdholakia krrishdholakia changed the title Litellm dev 04 14 2025 p3 Add /vllm and /mistral passthrough endpoints Apr 15, 2025
@krrishdholakia krrishdholakia changed the title Add /vllm and /mistral passthrough endpoints Add /vllm and /mistral passthrough endpoints Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Support Mistral OCR
1 participant