Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapabilityError ¶
type CapabilityError struct {
Kind OperationKind
}
func (*CapabilityError) Error ¶
func (e *CapabilityError) Error() string
type Endpoint ¶
type Endpoint string
const ( EndpointChatCompletions Endpoint = "chat_completions" EndpointResponses Endpoint = "responses" EndpointMessages Endpoint = "messages" EndpointCountTokens Endpoint = "count_tokens" EndpointEmbeddings Endpoint = "embeddings" EndpointImagesGenerations Endpoint = "images_generations" EndpointAudioSpeech Endpoint = "audio_speech" EndpointAudioTranscriptions Endpoint = "audio_transcriptions" EndpointModerations Endpoint = "moderations" )
type Operation ¶
type Operation struct {
Kind OperationKind
Account config.Account
Input json.RawMessage
IdempotencyKey string
}
type OperationError ¶
type OperationError struct {
Code string
}
func (*OperationError) Error ¶
func (e *OperationError) Error() string
type OperationKind ¶
type OperationKind string
const ( OperationDiscoverModels OperationKind = "discover_models" OperationValidateCredentials OperationKind = "validate_credentials" OperationReadUsage OperationKind = "read_usage" OperationListResetCredits OperationKind = "list_reset_credits" OperationConsumeResetCredit OperationKind = "consume_reset_credit" )
type OperationResult ¶
type OperationResult struct {
Data json.RawMessage
WarningCode string
CredentialRevision int64
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
Directories
¶
| Path | Synopsis |
|---|---|
|
Package oauthrefresh holds the generic OAuth token-refresh machinery shared by adapters that mint short-lived access tokens (anthropic): expiry checks, single-flight refresh, control-plane persistence with retry, and snapshot re-adoption on revision conflicts.
|
Package oauthrefresh holds the generic OAuth token-refresh machinery shared by adapters that mint short-lived access tokens (anthropic): expiry checks, single-flight refresh, control-plane persistence with retry, and snapshot re-adoption on revision conflicts. |
|
Package thirdparty hosts lightweight OpenAI-compatible provider adapters for subscription (OAuth/cookie) and free-tier accounts: Cursor, GitHub Copilot, Kimi, OpenCode Free, Felo, Qoder.
|
Package thirdparty hosts lightweight OpenAI-compatible provider adapters for subscription (OAuth/cookie) and free-tier accounts: Cursor, GitHub Copilot, Kimi, OpenCode Free, Felo, Qoder. |
Click to show internal directories.
Click to hide internal directories.