Documentation
¶
Overview ¶
Package openrouter reads OpenRouter key allowances and account credit balances.
Index ¶
Constants ¶
View Source
const ( ProviderID = "openrouter" Endpoint = "https://openrouter.ai/api/v1/key" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct{ Transport http.RoundTripper }
Reader uses the supplied transport or http.DefaultTransport. It never acquires credentials.
func (Reader) Read ¶
func (r Reader) Read(ctx context.Context, credential usage.Credential) (wire.AccountUsageResponse, error)
Read observes the key allowance and any account balance that the same credential can read.
Click to show internal directories.
Click to hide internal directories.