Documentation ¶
Overview ¶
Package gemini implements access to Google's Gemini model.
Client implements llm.Embedder. Use NewClient to connect.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client represents a connection to Gemini.
func NewClient ¶
func NewClient(ctx context.Context, lg *slog.Logger, sdb secret.DB, hc *http.Client) (*Client, error)
NewClient returns a connection to Gemini, using the given logger and HTTP client. It expects to find a secret of the form "AIza..." or "user:AIza..." in sdb under the name "ai.google.dev".
Click to show internal directories.
Click to hide internal directories.