Documentation
¶
Index ¶
- type Client
- func (c *Client) NewEmbedding(ctx context.Context, inp *embeddings.Request) (*embeddings.Response, error)
- func (c *Client) NewResponses(ctx context.Context, inp *responses.Request) (*responses.Response, error)
- func (c *Client) NewSpeech(ctx context.Context, inp *speech.Request) (*speech.Response, error)
- func (c *Client) NewStreamingResponses(ctx context.Context, inp *responses.Request) (chan *responses.ResponseChunk, error)
- func (c *Client) NewStreamingSpeech(ctx context.Context, inp *speech.Request) (chan *speech.ResponseChunk, error)
- type ClientOptions
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 (*Client) NewStreamingResponses ¶
func (*Client) NewStreamingSpeech ¶ added in v0.1.11
type ClientOptions ¶
type ClientOptions struct {
// https://generativelanguage.googleapis.com/v1beta
BaseURL string
ApiKey string
Headers map[string]string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.