Documentation
¶
Index ¶
- Constants
- Variables
- func CredentialGeneration(ctx context.Context, store runtimetypes.Store, id string) (string, error)
- func DeleteCredentials(ctx context.Context, exec libdb.Exec, id string) error
- type DeviceCode
- type Service
- func (s *Service) Headers(ctx context.Context, id string) (http.Header, error)
- func (s *Service) Login(ctx context.Context, id string, show func(DeviceCode) error) error
- func (s *Service) Logout(ctx context.Context, id string) error
- func (s *Service) Status(ctx context.Context, id string) (Status, error)
- type Status
Constants ¶
View Source
const BaseURL = "https://chatgpt.com/backend-api/codex"
View Source
const ProviderType = "openai-codex"
Variables ¶
View Source
var ErrLoginRequired = errors.New("ChatGPT login required; run contenox-runtime backend login <name>")
Functions ¶
func CredentialGeneration ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.