Expand description
ChatGPT Codex provider for aither.
This crate integrates ChatGPT subscription accounts (“Codex”) as a model
provider:
auth— the two OAuth login flows (browser PKCE loopback and device authorization), token refresh, and the persistedCodexCredentialstype.Codex— aLanguageModelthat wraps theaither-openaiResponses client pointed at thechatgpt.com/backend-api/codexsubscription endpoint, handling token refresh and rotation internally.CodexProvider— aLanguageModelProviderthat lists the backend’s own model catalog and hands outCodexclients.
Re-exports§
pub use auth::CodexCredentials;
Modules§
- auth
- OAuth authentication for
ChatGPTsubscription accounts. - constant
- Constants for the
ChatGPTCodex backend and its OAuth flow.
Structs§
- Codex
- A
LanguageModelfor a single model on the Codex subscription backend. - Codex
Provider - Provider over the
ChatGPTCodex backend.
Enums§
- Codex
Error - Errors from Codex OAuth flows and API calls.
Traits§
- Language
Model - Language models for text generation and conversation.
- Language
Model Provider - Trait for AI service providers that can list and provide language models.