-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(provider): add SAP AI Core provider (types, API, extension wiring, UI, validation, tests) #7385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add comprehensive SAP AI Core provider - Implement authentication using OAuth 2.0 client credentials flow - Add deployment detection and model mapping for SAP AI Core services - Include streaming support for real-time responses - Add comprehensive test coverage for all provider functionality - Implement UI components for SAP AI Core configuration and model selection - Add model picker with deployment status indication - Include validation for required configuration fields - Add internationalization support for SAP AI Core settings - Integrate with existing provider architecture and settings system This enables users to connect to SAP AI Core's enterprise AI platform, supporting both Azure OpenAI and GCP Vertex AI model deployments with proper authentication and deployment management. Aligns with roadmap goals: - Enhanced AI provider support for enterprise platforms - Reliable authentication and connection handling - Improved user experience with clear deployment status
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! I've reviewed the SAP AI Core provider implementation and found several issues that need attention before merging. The integration follows the existing provider patterns well, but there are some security concerns and code quality improvements needed.
…so update the document Url.
…textWindow in tests
|
Hey @junaid88, thank you for the time you put into this comprehensive SAP AI Core provider implementation. However, I did notice some architectural inconsistencies with our existing project patterns. For example, the implementation introduces custom webview message handlers that bypass our established fetchers interface, which could create technical debt. We'd love to see this refactored to align with our existing patterns (like using the standardized fetcher interface in src/api/providers/fetchers/) before resubmitting. I will close this PR for now but feel free to let me know if you want to work on it and refactor it, I can reopen it for you. |
|
@daniel-lxs Thank you for your response. Please reopen the PR and also highlight any other architectural inconsistencies. I will address them. |
|
Closing this PR. |
Summary
Add first-class support for SAP AI Core as a selectable provider across types, API, extension messaging, and webview UI. Includes model selection, provider-specific validation, streaming support, and comprehensive unit tests.
Changes
Types
API
Extension messaging
UI settings and model selection
i18n and validation
Tests
Configuration
Provider ID: sapAiCore
Required Fields:
Validation errors are surfaced via i18n strings.
Backward Compatibility
No breaking changes for existing providers or defaults. sapAiCore is additive and only active when selected.
Security and Privacy
Reuses existing provider HTTP and secret handling pathways. No changes to telemetry behavior.
Testing Instructions
Negative test cases:
Checklist
Important
Adds SAP AI Core as a new provider with full integration into types, API, UI, validation, and tests.
ApiOptions.tsxandSapAiCore.tsx.sapaicore.ts.provider-settings.tsto include SAP AI Core fields.sapaicore.tsfor typed definitions.sapaicore.tswith client construction and error handling.getSapAiCoreDeployedModelsfunction.SapAiCoreModelPicker.tsxfor model selection.useSelectedModel.tsto handle SAP AI Core models.validate.tsto include SAP AI Core validation logic.validate.test.tsfor SAP AI Core validation.sapaicore.spec.ts,sapaicore-test.spec.ts, andsapaicore-utils.spec.ts.SapAiCoreModelPicker.spec.tsx.useSelectedModelhook for SAP AI Core inuseSelectedModel.spec.ts.This description was created by
for 995f20f. You can customize this summary. It will automatically update as commits are pushed.