Registry / llm-agents / generative-ai-hub-sdk

generative-ai-hub-sdk

JSON →
library4.12.4pypypi✓ verified 82d ago

DEPRECATED. The generative AI hub SDK provides a Python interface to interact with SAP AI Core's generative AI hub and foundation models. Version 4.12.4 final release. No longer maintained; superseded by the AI Core SDK.

pip install generative-ai-hub-sdk
INSTALL
IMPORT
SIG · GENERATIVE-AI-HUB-
G
generative-ai-hub-sdk
llm-agentspythonv4.12.4
Install
6.4s avg
Import
Disk
56MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.12.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 56.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 6.4s · import 0.000s · 56MB
56MB installed
● package 56MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GenAIHubProxyClient
from gen_ai_hub import GenAIHubProxyClient
from gen_ai_hub import gen_ai_hub
proxy
from gen_ai_hub import proxy

Initialize the AI Core client and fetch first deployment.

from gen_ai_hub import gen_ai_hub # Replace with your actual AI Core service key values or environment variables ai_core_client = gen_ai_hub.AICoreClient( base_url=os.environ.get('AICORE_BASE_URL', ''), auth_url=os.environ.get('AICORE_AUTH_URL', ''), client_id=os.environ.get('AICORE_CLIENT_ID', ''), client_secret=os.environ.get('AICORE_CLIENT_SECRET', '') ) print(ai_core_client.get_deployments()[:1])
Debug
Known issues
deprecatedThis library is deprecated. SAP officially recommends migrating to the AI Core SDK (ai-core-sdk). No new features or security patches will be released.
fix
Uninstall generative-ai-hub-sdk and replace with ai-core-sdk. See migration guide at https://help.sap.com/docs/AI_CORE.
affects: all
gotchaThe correct import module is 'gen_ai_hub', not 'generative_ai_hub' or 'gen_ai_hub_sdk'. Many users mistakenly use the PyPI package name.
fix
Use 'from gen_ai_hub import gen_ai_hub' or 'from gen_ai_hub.models import ...'.
affects: >=4.0.0
breakingBreaking change in v4.0.0: The 'ai_core' module was renamed to 'gen_ai_hub'. Old code using 'from generative_ai_hub import ai_core' will break.
fix
Change imports to 'from gen_ai_hub import gen_ai_hub'.
affects: >=4.0.0
Upgrade
Version history
4.12.4latest on PyPI · released May 14, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
2
Resources
generative-ai-hub-sdk — pip install generative-ai-hub-sdk · libregistry