Versions in this module Expand all Collapse all v0 v0.1.15 Oct 30, 2024 v0.1.14 Oct 30, 2024 Changes in this version + type Model struct + CallbacksHandler callbacks.Handler + func New(opts ...Option) (*Model, error) + func (m *Model) Call(ctx context.Context, prompt string, options ...llms.CallOption) (string, error) + func (m *Model) GenerateContent(ctx context.Context, langchainMessages []llms.MessageContent, ...) (*llms.ContentResponse, error) + type Option func(*clientOptions) + func WithAPIKey(apiKey string) Option + func WithCallbacksHandler(callbacksHandler callbacks.Handler) Option + func WithEndpoint(endpoint string) Option + func WithMaxRetries(maxRetries int) Option + func WithModel(model string) Option + func WithTimeout(timeout time.Duration) Option