Skip to content

Commit

Permalink
[feature]: add gemini to supported AI backends (#406)
Browse files Browse the repository at this point in the history
This commit adds `google` to the list of supported AI backends.

Fixes: #347

Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com>
  • Loading branch information
VaibhavMalik4187 committed Apr 15, 2024
1 parent c142302 commit 6e0d9c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion api/v1alpha1/k8sgpt_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type BackOff struct {

type AISpec struct {
// +kubebuilder:default:=openai
// +kubebuilder:validation:Enum=openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker
// +kubebuilder:validation:Enum=openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker;google;googlevertexai
Backend string `json:"backend"`
BackOff *BackOff `json:"backOff,omitempty"`
BaseUrl string `json:"baseUrl,omitempty"`
Expand Down Expand Up @@ -138,6 +138,8 @@ const (
AmazonBedrock = "amazonbedrock"
AmazonSageMaker = "AmazonSageMaker"
Cohere = "cohere"
Google = "google"
GoogleVertexAI = "googlevertexai"
)

// K8sGPTStatus defines the observed state of K8sGPT
Expand Down
4 changes: 3 additions & 1 deletion chart/operator/templates/k8sgpt-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ spec:
- amazonbedrock
- cohere
- amazonsagemaker
- google
- googlevertexai
type: string
baseUrl:
type: string
Expand Down Expand Up @@ -209,4 +211,4 @@ status:
kind: ""
plural: ""
conditions: []
storedVersions: []
storedVersions: []
2 changes: 2 additions & 0 deletions config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ spec:
- amazonbedrock
- cohere
- amazonsagemaker
- google
- googlevertexai
type: string
baseUrl:
type: string
Expand Down

0 comments on commit 6e0d9c7

Please sign in to comment.