Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProviderCodex = "codex" ProviderGemini = "gemini" ProviderChatGPT = "chatgpt" )
Variables ¶
This section is empty.
Functions ¶
func BackendProvider ¶
func ValidateLoginProvider ¶
ValidateLoginProvider returns the canonical public OAuth provider name. Codex remains an internal backend and a legacy runtime value, but new logins use the ChatGPT name because both routes authenticate the same account.
Types ¶
type LoginOptions ¶
type LoginResult ¶
func Login ¶
func Login(ctx context.Context, providerName string, opts LoginOptions) (LoginResult, error)
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func StartCodexAPI ¶
func StartCodexAPI(parent context.Context, endpoint, upstreamAPIKey, modelSpec string) (*Runtime, error)
StartCodexAPI starts an embedded CLIProxyAPI runtime configured with a Codex-compatible API key endpoint. The SDK supplies the current Codex request shape and client headers while ccl continues to expose Anthropic Messages.
Click to show internal directories.
Click to hide internal directories.