Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnthropicModels = map[string]ai.ModelOptions{ "claude-3-5-sonnet-v2@20241022": { Label: "Claude 3.5 Sonnet", Supports: &internal.Multimodal, }, "claude-3-5-sonnet@20240620": { Label: "Claude 3.5 Sonnet", Supports: &internal.Multimodal, }, "claude-3-sonnet@20240229": { Label: "Claude 3 Sonnet", Supports: &internal.Multimodal, }, "claude-3-haiku@20240307": { Label: "Claude 3 Haiku", Supports: &internal.Multimodal, }, "claude-3-opus@20240229": { Label: "Claude 3 Opus", Supports: &internal.Multimodal, }, "claude-3-7-sonnet@20250219": { Label: "Claude 3.7 Sonnet", Supports: &internal.Multimodal, }, "claude-opus-4@20250514": { Label: "Claude Opus 4", Supports: &internal.Multimodal, }, "claude-sonnet-4@20250514": { Label: "Claude Sonnet 4", Supports: &internal.Multimodal, }, "claude-opus-4-1-20250805": { Label: "Claude 4.1 Opus", Supports: &internal.Multimodal, }, "claude-sonnet-4-5-20250929": { Label: "Claude 4.5 Sonnet", Supports: &internal.Multimodal, }, "claude-haiku-4-5-20251001": { Label: "Claude 4.5 Haiku", Supports: &internal.Multimodal, }, }
AnthropicModels is a list of models supported in VertexAI Keep this list updated since models cannot be dynamically listed if we are authenticating with Google Credentials
Functions ¶
Types ¶
type Anthropic ¶
type Anthropic struct {
ProjectID string // Google Cloud project to use for Vertex AI. If empty, the value of the environment variable GOOGLE_CLOUD_PROJECT or GCLOUD_PROJECT will be consulted in that order
Location string // Location of the Vertex AI service. If empty, the value of the environment variable GOOGLE_CLOUD_LOCATION or GOOGLE_CLOUD_REGION will be consulted in that order
// contains filtered or unexported fields
}
Anthropic is a Genkit plugin for interacting with Anthropic models in Vertex AI Model Garden
func (*Anthropic) DefineModel ¶
DefineModel adds the model to the registry
Click to show internal directories.
Click to hide internal directories.