Documentation ¶ Index ¶ type MD func NewModel(name, apikey string, opts *Option) (*MD, error) func (c *MD) Text(system, user string) (string, error) func (c *MD) TextWithImage(system, user string, images ...[]byte) (string, error) func (c *MD) TextWithImageURL(system, user string, images ...string) (string, error) type Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MD ¶ type MD struct { // contains filtered or unexported fields } func NewModel ¶ func NewModel(name, apikey string, opts *Option) (*MD, error) func (*MD) Text ¶ func (c *MD) Text(system, user string) (string, error) func (*MD) TextWithImage ¶ func (c *MD) TextWithImage(system, user string, images ...[]byte) (string, error) func (*MD) TextWithImageURL ¶ func (c *MD) TextWithImageURL(system, user string, images ...string) (string, error) type Option ¶ type Option struct { Safety []*genai.SafetySetting Temperature float32 TopP float32 TopK int32 MaxTokens int32 StopSequences []string Tools []*genai.Tool ToolConfig *genai.ToolConfig MimeType string } Source Files ¶ View all Source files genai.gogenerate.go Click to show internal directories. Click to hide internal directories.