Documentation
¶
Overview ¶
Package gemini provides a ModelProvider adapter for Google's Gemini API. It implements the Gemini REST wire format, supporting both complete() and streaming responses, with proper token usage mapping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Provider)
Option is a functional option for configuring a Provider.
func WithAPIKey ¶
WithAPIKey sets the API key used for authentication.
func WithHTTPClient ¶
WithHTTPClient sets a custom HTTP client for requests.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements runtime.ModelProvider for Google's Gemini API.
func New ¶
New creates a new Gemini provider with the default base URL. baseURL defaults to https://generativelanguage.googleapis.com
func NewWithBaseURL ¶
NewWithBaseURL creates a new Gemini provider with a custom base URL.
Click to show internal directories.
Click to hide internal directories.