modelgarden

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func AnthropicModel

func AnthropicModel(g *genkit.Genkit, id string) ai.Model

AnthropicModel returns the ai.Model with the given id. It returns nil if the model was not defined

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

func (a *Anthropic) DefineModel(name string, opts *ai.ModelOptions) (ai.Model, error)

DefineModel adds the model to the registry

func (*Anthropic) Init

func (a *Anthropic) Init(ctx context.Context) []api.Action

Init initializes the VertexAI Model Garden for Anthropic plugin and all its known models. After calling Init, you may call [DefineModel] to create and register any additional models.

func (*Anthropic) Name

func (a *Anthropic) Name() string

Name returns the name of the plugin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL