Skip to main content

Crate skg_provider_codex

Crate skg_provider_codex 

Source
Expand description

OpenAI Codex (Responses API) provider for skg-turn.

Implements Provider and StreamProvider for the OpenAI Responses API, supporting both the standard api.openai.com/v1/responses endpoint and the Codex backend at chatgpt.com/backend-api/codex/responses.

§Authentication

Codex uses OAuth JWT tokens. The provider extracts the chatgpt_account_id from the JWT payload and sends it as the chatgpt-account-id header.

use skg_provider_codex::CodexProvider;

let provider = CodexProvider::new("eyJ...");  // JWT from OMP

Structs§

CodexProvider
OpenAI Codex (Responses API) provider.