Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIKeyMeta = provider.ProviderMeta{ Provider: provider.ProviderGoogle, AuthMethod: provider.AuthAPIKey, EnvVars: []string{"GOOGLE_API_KEY"}, DisplayName: "Direct API", }
APIKeyMeta is the metadata for Google via API Key
Functions ¶
func NewAPIKeyClient ¶
func NewAPIKeyClient(ctx context.Context) (provider.LLMProvider, error)
NewAPIKeyClient creates a new Google client using API Key authentication
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the LLMProvider interface using the Google GenAI SDK
func (*Client) ListModels ¶
ListModels returns the available models for Google using the API
func (*Client) Stream ¶
func (c *Client) Stream(ctx context.Context, opts provider.CompletionOptions) <-chan provider.StreamChunk
Stream sends a completion request and returns a channel of streaming chunks
Click to show internal directories.
Click to hide internal directories.