Documentation
¶
Index ¶
Constants ¶
View Source
const ( BaseURL = "https://routerbase.com/v1" DefaultModel = "google/gemini-2.5-flash" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompletionRequest ¶
type ChatCompletionResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ChatCompletion ¶
func (client *Client) ChatCompletion(ctx context.Context, request ChatCompletionRequest) (*ChatCompletionResponse, error)
func (*Client) ListModels ¶
func (client *Client) ListModels(ctx context.Context) (*ModelsResponse, error)
type ModelsResponse ¶
type ModelsResponse struct {
Data []Model `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.