genai

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL