Skip to main content

generative AI hub SDK

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

generative_ai_hub_sdk-3.8.0-py3-none-any.whl (353.0 kB view details)

Uploaded Python 3

File details

Details for the file generative_ai_hub_sdk-3.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for generative_ai_hub_sdk-3.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e14e83775f7dfe0f442ecf5654f38df2305211b312715be2d83b3e2830f8df81
MD5 2ef3b44d944cacceba0351911c09f87c
BLAKE2b-256 49ceeac7c9bd54049ff643bd9d780e43b0c9ae892eeffc4bb54f149d76c9ddae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page