gemini

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*base.BaseProvider
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts *ClientOptions) *Client

func (*Client) NewEmbedding

func (c *Client) NewEmbedding(ctx context.Context, inp *embeddings.Request) (*embeddings.Response, error)

func (*Client) NewResponses

func (c *Client) NewResponses(ctx context.Context, inp *responses.Request) (*responses.Response, error)

func (*Client) NewSpeech added in v0.1.11

func (c *Client) NewSpeech(ctx context.Context, inp *speech.Request) (*speech.Response, error)

func (*Client) NewStreamingResponses

func (c *Client) NewStreamingResponses(ctx context.Context, inp *responses.Request) (chan *responses.ResponseChunk, error)

func (*Client) NewStreamingSpeech added in v0.1.11

func (c *Client) NewStreamingSpeech(ctx context.Context, inp *speech.Request) (chan *speech.ResponseChunk, error)

type ClientOptions

type ClientOptions struct {
	// https://generativelanguage.googleapis.com/v1beta
	BaseURL string
	ApiKey  string
	Headers map[string]string
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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