Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*plugins.PluginBase
ProjectID *plugins.SetupQuestion
Region *plugins.SetupQuestion
// contains filtered or unexported fields
}
Client implements the ai.Vendor interface for Google Cloud Vertex AI with Anthropic models
func NewClient ¶
func NewClient() (ret *Client)
NewClient creates a new Vertex AI client for accessing Claude models via Google Cloud
func (*Client) ListModels ¶
func (*Client) Send ¶
func (c *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions) (string, error)
func (*Client) SendStream ¶
func (c *Client) SendStream(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.StreamUpdate) error
Click to show internal directories.
Click to hide internal directories.