Skip to main content

Crate aither_codex

Crate aither_codex 

Source
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 persisted CodexCredentials type.
  • Codex — a LanguageModel that wraps the aither-openai Responses client pointed at the chatgpt.com/backend-api/codex subscription endpoint, handling token refresh and rotation internally.
  • CodexProvider — a LanguageModelProvider that lists the backend’s own model catalog and hands out Codex clients.

Re-exports§

pub use auth::CodexCredentials;

Modules§

auth
OAuth authentication for ChatGPT subscription accounts.
constant
Constants for the ChatGPT Codex backend and its OAuth flow.

Structs§

Codex
A LanguageModel for a single model on the Codex subscription backend.
CodexProvider
Provider over the ChatGPT Codex backend.

Enums§

CodexError
Errors from Codex OAuth flows and API calls.

Traits§

LanguageModel
Language models for text generation and conversation.
LanguageModelProvider
Trait for AI service providers that can list and provide language models.