Skip to content

Commit

Permalink
Merge pull request #1 from arbreezy/chore/add-backends
Browse files Browse the repository at this point in the history
chore: add missing backends
  • Loading branch information
Aris Boutselis committed Dec 1, 2023
2 parents 15229c2 + 766efce commit d7a315d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions api/v1alpha1/k8sgpt_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type WebhookRef struct {

type AISpec struct {
// +kubebuilder:default:=openai
// +kubebuilder:validation:Enum=openai;localai;azureopenai
// +kubebuilder:validation:Enum=openai;localai;azureopenai;amazonbedrock;cohere;amazonsagemaker
Backend string `json:"backend"`
BaseUrl string `json:"baseUrl,omitempty"`
// +kubebuilder:default:=gpt-3.5-turbo
Expand Down Expand Up @@ -109,9 +109,12 @@ type K8sGPTSpec struct {
}

const (
OpenAI = "openai"
AzureOpenAI = "azureopenai"
LocalAI = "localai"
OpenAI = "openai"
AzureOpenAI = "azureopenai"
LocalAI = "localai"
AmazonBedrock = "amazonbedrock"
AmazonSageMaker = "AmazonSageMaker"
Cohere = "cohere"
)

// K8sGPTStatus defines the observed state of K8sGPT
Expand Down
3 changes: 3 additions & 0 deletions chart/operator/templates/k8sgpt-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- openai
- localai
- azureopenai
- amazonbedrock
- cohere
- amazonsagemaker
type: string
baseUrl:
type: string
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/core.k8sgpt.ai_k8sgpts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- openai
- localai
- azureopenai
- amazonbedrock
- cohere
- amazonsagemaker
type: string
baseUrl:
type: string
Expand Down

0 comments on commit d7a315d

Please sign in to comment.