Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions api/v1alpha1/ai_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,13 @@ type GeminiConfig struct {
ApiVersion string `json:"apiVersion"`
}

// Publisher configures the type of publisher model to use for VertexAI. Currently, only Google is supported.
// Publisher configures the type of publisher model to use for VertexAI. Google and Anthropic are supported.
type Publisher string

const GOOGLE Publisher = "GOOGLE"
const (
GOOGLE Publisher = "GOOGLE"
ANTHROPIC Publisher = "ANTHROPIC"
)

// VertexAIConfig settings for the [Vertex AI](https://cloud.google.com/vertex-ai/docs) LLM provider.
// To find the values for the project ID, project location, and publisher, you can check the fields of an API request, such as
Expand Down Expand Up @@ -293,8 +296,8 @@ type VertexAIConfig struct {
// Optional: The model path to route to. Defaults to the Gemini model path, `generateContent`.
ModelPath *string `json:"modelPath,omitempty"`

// The type of publisher model to use. Currently, only Google is supported.
// +kubebuilder:validation:Enum=GOOGLE
// The type of publisher model to use. Google and Anthropic are supported.
// +kubebuilder:validation:Enum=GOOGLE;ANTHROPIC
Publisher Publisher `json:"publisher"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,11 @@ spec:
minLength: 1
type: string
publisher:
description: The type of publisher model to use. Currently,
only Google is supported.
description: The type of publisher model to use. Google
and Anthropic are supported.
enum:
- GOOGLE
- ANTHROPIC
type: string
required:
- apiVersion
Expand Down Expand Up @@ -1088,9 +1089,10 @@ spec:
type: string
publisher:
description: The type of publisher model to use.
Currently, only Google is supported.
Google and Anthropic are supported.
enum:
- GOOGLE
- ANTHROPIC
type: string
required:
- apiVersion
Expand Down
Loading