SAP generative AI hub SDK
With this SDK you can leverage the power of generative models available in the generative AI Hub of SAP AI Core.
The generative AI Hub SDK provides model access by wrapping the native SDKs of the model providers (OpenAI, Amazon, Google), through langchain, or through the orchestration service.
Installation
To install this SDK, use the following pip command, which includes support for all models including langchain support:
pip install "generative-ai-hub-sdk[all]"
The default installation only includes OpenAI models (without langchain support):
pip install generative-ai-hub-sdk
You can install a subset of the extra libraries (without langchain support) by specifying them in square brackets:
pip install "generative-ai-hub-sdk[google, amazon]"
Configuration, Usage
Please refer to the official documentation hosted on help.sap.com for details on how to configure and use the generative AI hub SDK.
Dependencies
Currently the generative AI Hub SDK supports the following dependent library versions:
- langchain~=0.2.9 # langchain
- langchain-community==0.2.17 # langchain
- langchain-aws==0.1.7 # langchain
- langchain-google-vertexai==1.0.8 # langchain
- langchain-openai~=0.1.4 # langchain
- boto3==1.34.132 # amazon
- google-cloud-aiplatform==1.60.0 # google
- openai>=1.3.3