Documentation
¶
Index ¶
- Constants
- func IsModelSupported(model string) bool
- func Models() []string
- func New(cfg config.ProviderConfig) (provider.Provider, error)
- type Client
- func (c *Client) ContextWindow(model string) int
- func (c *Client) DefaultModel() string
- func (c *Client) EstimateTokens(s string) int
- func (c *Client) Name() string
- func (c *Client) Pricing(model string) provider.Pricing
- func (c *Client) Review(ctx context.Context, req provider.Request) (provider.Response, error)
- func (c *Client) TestConnection(ctx context.Context) error
Constants ¶
View Source
const ( Name = "gemini" // ModelPro31 is a preview model: the public pricing page lists the Pro // tier only as gemini-3.1-pro-preview. Update to the stable ID once // Google promotes it out of preview. ModelPro31 = "gemini-3.1-pro-preview" ModelFlash35 = "gemini-3.5-flash" ModelFlashLite31 = "gemini-3.1-flash-lite" DefaultModel = ModelFlash35 )
Variables ¶
This section is empty.
Functions ¶
func IsModelSupported ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ContextWindow ¶
func (*Client) DefaultModel ¶
func (*Client) EstimateTokens ¶
Click to show internal directories.
Click to hide internal directories.