Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LLM ¶
func (*LLM) GenerateContent ¶ added in v0.1.4
func (o *LLM) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
GenerateContent implements the Model interface.
type Option ¶
type Option func(*options)
func WithBaseURL ¶ added in v0.1.6
WithBaseUrl passes the Anthropic base URL to the client. If not set, the default base URL is used.
func WithHTTPClient ¶ added in v0.1.6
func WithHTTPClient(client anthropicclient.Doer) Option
WithHTTPClient allows setting a custom HTTP client. If not set, the default value is http.DefaultClient.
Click to show internal directories.
Click to hide internal directories.