fix(sap-ai-core): use working provider fork for stable OpenCode integration#638
Merged
rekram1-node merged 2 commits intoanomalyco:devfrom Jan 27, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR temporarily switches the SAP AI Core provider from the unmaintained @mymediset/sap-ai-provider package to a fork (@jerome-benoit/sap-ai-provider) to ensure stable integration with OpenCode.
Changes:
- Updated npm package reference in SAP AI Core provider configuration to use a temporary fork
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Jan 15, 2026
Closed
jerome-benoit
commented
Jan 19, 2026
Contributor
Author
|
@rekram1-node: could you please review that PR? OpenCode SAP AI Core support is not usable in production. OpenCode is currently buggy at reinstalling provider package when it change, but I will fix it to ensure smooth transition when time permits. |
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 switches the SAP AI Core provider package from
@mymediset/sap-ai-providerto@jerome-benoit/sap-ai-provider-v2(fork).Depends on PR anomalyco/opencode#10275 for provider package transition handling.
Background
The fork at https://github.com/jerome-benoit/sap-ai-provider for Vercel v3 API and https://github.com/jerome-benoit/sap-ai-provider-v2 for Vercel v2 API includes critical streaming fixes and provider name support and has been used successfully via local configuration for several weeks. Upstream PR BITASIA/sap-ai-provider#28 has been open for several weeks without response.
Without these fixes, SAP AI Core cannot be used in production with OpenCode due to regular SSE stream errors.
Changes
providers/sap-ai-core/provider.tomlto reference the fork packageWorkaround
Users can configure OpenCode to use the fork by adding to their JSONC config:
Then
And restart opencode