تخطَّ إلى المحتوى

ChatGPT

هذا المحتوى غير متوفر بلغتك بعد.

Overview

The ChatGPT provider enables chat completions, conversation continuity, projects with file context, file attachments, and audio transcription through connected ChatGPT accounts.

Capabilities

CapabilitySupported
ChatYes
StreamingYes (SSE)
ConversationsYes
ProjectsYes
File AttachmentsYes
TranscriptionYes
Speech GenerationNo

Connection

ChatGPT connections require a session with an access_token. Connections are established two ways:

  • Browser capture (self-service) — the admin opens a guided capture from the Connections page, logs in to chatgpt.com in a secure browser window (2FA/CAPTCHA handled personally — no credentials stored), and GhostMind captures the session automatically.
  • Session JSON upload — an admin pastes a previously captured session JSON (advanced/recovery path).

Once connected, request execution is protocol-level — no browser is involved per request.

Session Requirements

  • Must contain a valid access_token field
  • Token must not be expired
  • Session is encrypted at rest using Fernet

Session Expiry

ChatGPT sessions expire periodically — the upstream provider can revoke the session cookies at any time (re-login elsewhere, security rotation, upstream challenges). GhostMind mitigates this:

  • The short-lived access_token is refreshed automatically in the background (hourly pass) and on demand.
  • A single upstream 401/403 does not expire the connection — only repeated failures within a decay window transition it, so transient challenges cannot kill a healthy session.

When a session truly expires:

  • The connection status changes to expired
  • An admin reconnects via browser capture or a new session upload
  • Requests to an expired connection return a 503 error

Conversation Behavior

  • Continuity: Conversations are continued upstream using conversation IDs and parent message IDs
  • Projects: Project conversations use gizmo_interaction mode for file retrieval
  • Sticky binding: Conversations stay on the same account they started with

Known Limitations

  • Session cookies are revoked upstream periodically — reconnection (browser capture or session upload) is required when they die
  • Browser capture requires an admin to complete an interactive login; it cannot run unattended
  • Rate limits are subject to ChatGPT’s own throttling

Next Steps