feat(ai): add OpenAI Codex OAuth + responses provider
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Constants for OpenAI Codex (ChatGPT OAuth) backend
|
||||
*/
|
||||
|
||||
export const CODEX_BASE_URL = "https://chatgpt.com/backend-api";
|
||||
|
||||
export const OPENAI_HEADERS = {
|
||||
BETA: "OpenAI-Beta",
|
||||
ACCOUNT_ID: "chatgpt-account-id",
|
||||
ORIGINATOR: "originator",
|
||||
SESSION_ID: "session_id",
|
||||
CONVERSATION_ID: "conversation_id",
|
||||
} as const;
|
||||
|
||||
export const OPENAI_HEADER_VALUES = {
|
||||
BETA_RESPONSES: "responses=experimental",
|
||||
ORIGINATOR_CODEX: "codex_cli_rs",
|
||||
} as const;
|
||||
|
||||
export const URL_PATHS = {
|
||||
RESPONSES: "/responses",
|
||||
CODEX_RESPONSES: "/codex/responses",
|
||||
} as const;
|
||||
|
||||
export const JWT_CLAIM_PATH = "https://api.openai.com/auth" as const;
|
||||
Reference in New Issue
Block a user