feat: Add SAP AI Core provider support#5022
Closed
jerome-benoit wants to merge 1 commit into
Closed
Conversation
Add integration for SAP AI Core using @mymediset/sap-ai-provider, enabling access to 40+ AI models (GPT-4o, Claude, Gemini, Amazon Nova, etc.) through SAP BTP. Features: - OAuth2 authentication with service key - Support for 40+ models via SAP AI Core Orchestration API - Configurable deployment ID and resource group - Full Vercel AI SDK compatibility (streaming, tools, multi-modal) - Environment variable configuration support Configuration: - SAP_AI_SERVICE_KEY: Service key from SAP BTP Cockpit - SAP_AI_DEPLOYMENT_ID: Optional custom deployment (default: d65d81e7c077e583) - SAP_AI_RESOURCE_GROUP: Optional resource group (default: default) Documentation added to providers.mdx with setup instructions.
Contributor
Author
|
Closing to recreate with simpler description per guidelines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for SAP AI Core as a provider in OpenCode, enabling users to access 40+ AI models (GPT-4o, Claude, Gemini, Amazon Nova, etc.) through SAP Business Technology Platform.
Implementation Details
Provider Integration
@mymediset/sap-ai-provider(community Vercel AI SDK compatible package)Configuration
Users can configure SAP AI Core via:
SAP_AI_SERVICE_KEY(JSON from SAP BTP Cockpit)SAP_AI_DEPLOYMENT_ID(default:d65d81e7c077e583)SAP_AI_RESOURCE_GROUP(default:default)opencode auth add sap-ai-coreFeatures Supported
Files Changed
packages/opencode/package.json- Added@mymediset/sap-ai-provider@1.3.1packages/opencode/src/provider/provider.ts- Added custom loader for SAP AI Corepackages/web/src/content/docs/providers.mdx- Added documentationbun.lock- Updated dependenciesTesting Status
Documentation
Complete user-facing documentation added to
providers.mdxincluding:Conformity with OpenCode Standards
github-copilot)Auth.get()for credential managementWhy This Provider?
SAP AI Core is an enterprise-grade AI platform widely used in SAP ecosystem and beyond. This integration allows:
Questions for Maintainers
Note: This PR is in draft status to allow for review and validation before final testing.