Documentation
¶
Overview ¶
Package requesty provides a Requesty language model implementation for GoAI.
Requesty is a unified, OpenAI-compatible LLM gateway that routes to multiple providers through a single endpoint, with caching, failover, and cost optimization. See https://requesty.ai and https://docs.requesty.ai.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option configures the Requesty provider.
func WithAPIKey ¶
WithAPIKey sets a static API key for authentication.
func WithBaseURL ¶
WithBaseURL overrides the default API base URL.
func WithHTTPClient ¶
WithHTTPClient sets a custom HTTP client for all requests.
func WithHeaders ¶
WithHeaders sets additional HTTP headers sent with every request.
func WithTokenSource ¶
func WithTokenSource(ts provider.TokenSource) Option
WithTokenSource sets a dynamic token source for authentication.
Click to show internal directories.
Click to hide internal directories.