feat: add Amazon Bedrock Mantle (OpenAI-compatible) AI provider#1640
Open
sankeyraut wants to merge 12 commits intok8sgpt-ai:mainfrom
Open
feat: add Amazon Bedrock Mantle (OpenAI-compatible) AI provider#1640sankeyraut wants to merge 12 commits intok8sgpt-ai:mainfrom
sankeyraut wants to merge 12 commits intok8sgpt-ai:mainfrom
Conversation
|
|
Contributor
three-foxes-in-a-trenchcoat
left a comment
There was a problem hiding this comment.
Solid implementation and the test suite is laaaaid out perfectly. LGTM!
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1640 +/- ##
==========================================
+ Coverage 34.76% 43.56% +8.79%
==========================================
Files 94 120 +26
Lines 6342 9527 +3185
==========================================
+ Hits 2205 4150 +1945
- Misses 4046 5163 +1117
- Partials 91 214 +123 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
@sankeyraut please lint |
Author
|
@AlexsJones : Done. Updated based on PR's touchpoints. |
* feat: add amazon bedrock converse api support Signed-off-by: CradleKing24 <44717227+CradleKing24@users.noreply.github.com> * docs(amazonbedrockconverse): add backend amazonbedrockconverse details Signed-off-by: CradleKing24 <44717227+CradleKing24@users.noreply.github.com> * fix(amazonbedrockconverse): error statements and comment cleanup Signed-off-by: CradleKing24 <44717227+CradleKing24@users.noreply.github.com> * test(amazonbedrockconverse): add unit tests Signed-off-by: CradleKing24 <44717227+CradleKing24@users.noreply.github.com> * fix(amazonbedrockconverse): linting, test coverage, converse output review Signed-off-by: CradleKing24 <44717227+CradleKing24@users.noreply.github.com> --------- Signed-off-by: CradleKing24 <44717227+CradleKing24@users.noreply.github.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
…k8sgpt-ai#1626) Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
Add bedrockmantle as a new AI backend that uses Amazon Bedrock's
OpenAI-compatible Chat Completions endpoint (bedrock-mantle.{region}.api.aws).
- New provider: pkg/ai/bedrockmantle.go
- Reads API key from AWS_BEARER_TOKEN_BEDROCK env var
- Auto-constructs endpoint URL from providerRegion
- Reuses existing go-openai library
- Registered in clients, Backends, and passwordlessProviders
- providerRegion required via cmd/auth/add.go PreRun
- Unit tests with mock HTTP server
- Updated SUPPORTED_MODELS.md with supported models
Signed-off-by: Sanket <sankeyraut@gmail.com>
Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
…8sgpt-ai#1599) * fix: recognize GKE built-in ingress classes 'gce' and 'gce-internal' Skip IngressClass existence validation for GKE's built-in ingress classes that work without an explicit IngressClass resource in the cluster. This fixes false positive errors when using 'gce' or 'gce-internal' ingress class on GKE. Closes k8sgpt-ai#849 Signed-off-by: majiayu000 <1835304752@qq.com> * chore: trigger CI re-run Signed-off-by: majiayu000 <1835304752@qq.com> --------- Signed-off-by: majiayu000 <1835304752@qq.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
…i#1602) - Add detection for dynamically loaded ConfigMaps (Grafana sidecar) - Support grafana_dashboard and grafana_datasource labels - Support prometheus_rule and fluentd_config labels - Add k8sgpt.ai/dynamically-loaded label for custom patterns - Add k8sgpt.ai/skip-usage-check annotation to opt-out - Add comprehensive test cases for sidecar patterns Fixes false positives where ConfigMaps loaded dynamically by sidecar containers (via Kubernetes API watches with label selectors) were incorrectly flagged as unused. Tested on production cluster with kube-prometheus-stack: - Before: 29 ConfigMaps incorrectly flagged as unused - After: No false positives (29 eliminated - 100% reduction) Signed-off-by: sqautboy <migonyoung01@gmail.com> Co-authored-by: Alex Jones <1235925+AlexsJones@users.noreply.github.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
…i#1638) Signed-off-by: lawrencelo8 <lawrencelo8@users.noreply.github.com> Co-authored-by: Lo, Jungshih <lawrencelo8@users.noreply.github.com> Co-authored-by: Alex Jones <1235925+AlexsJones@users.noreply.github.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
…t-ai#1636) Signed-off-by: Semyon Inokov <semen.inokov@gmail.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
Signed-off-by: CradleKing24 <44717227+CradleKing24@users.noreply.github.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Sanket Raut <sankeyraut@gmail.com>
755142c to
bfdc7ea
Compare
Signed-off-by: Sanket Raut <sankeyraut@users.noreply.github.com>
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.
📑 Description
Add bedrockmantle as a new AI backend that uses Amazon Bedrock's OpenAI-compatible Chat Completions endpoint (bedrock-mantle.{region}.api.aws).
✅ Checks