Skip to content

Conversation

@vasilisazayka
Copy link

@vasilisazayka vasilisazayka commented Oct 29, 2025

Title

Add SAP AI gen hub as a new provider

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
✅ Test

Changes

  • Added SAP Generative AI Hub as an LLM provider (provider key: "sap"), supporting chat and embeddings.
  • Registered SAP models under the sap/* namespace (e.g., sap/gpt-4o) in the model registry.
  • Updated provider enum to include SAP; introduced handler and transformation layers for chat completions and embeddings.
  • Added tests for sup chat and embedding
litellm unit tests

mbrnersap and others added 30 commits October 16, 2025 15:38
…patibility

- sap/embed/transformation: add api_key and litellm_params to get_complete_url to align with core flow and prevent failures
- sap/chat/handler: wrap async/sync streaming iterators to safely handle Stop(Async)Iteration and errors
- sap/chat/transformation: remove unused imports and dead code
Add sap models to model_prices_and_context_window.json and model_prices_and_context_window_backup.json
- add support of list and dict content
- reimplement stream creator
- improve request transformation
@vercel
Copy link

vercel bot commented Oct 29, 2025

@vasilisazayka is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

@karimmohraz
Copy link

karimmohraz commented Oct 30, 2025

Dear LiteLLM team, dear @krrishdholakia,
this PR adds the SAP Provider, which enables a huge customer base to access various LLMs from OpenAI, Google, and Amazon.
SAP is Europe's largest business software vendor.
Next week there is an important conference - SAP TechEd - where we would be happy to announce LiteLLM to our customers as an important centerpiece for successful AI projects.
Please let us know what is still missing to merge this PR possibly today or tomorrow.
We have followed all steps in your Contribution guide and think we adhered to the requirements.
Thank you very much for your support!

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.

3 participants