mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-21 21:31:12 +02:00
Adds the model-call half of "Use your ChatGPT subscription": a new credential-less "codex" provider flavor (like "rowboat") that runs calls against the Codex backend using the OAuth session from chatgpt-auth. - core/models/codex.ts: AI SDK OpenAI provider in Responses mode. A wrapLanguageModel middleware injects providerOptions.openai.store=false on every call so the SDK emits full self-contained items (text + reasoning with encrypted_content) instead of item_reference entries the stateless backend 404s. A wire-level fetch wrapper adds auth (bearer + chatgpt-account-id) and Cloudflare headers (originator), and backstops the contract: store:false, stream forced with SSE aggregation for non-streaming callers, max_output_tokens dropped, encrypted- reasoning include, friendly usage-limit errors - live model discovery via /codex/models, gated by client_version (mirrored from the local codex CLI's models_cache.json so the catalog matches what `codex` shows); visibility "hide" utility models filtered; display names carried through; hardcoded fallback list for offline - createProvider/resolveProviderConfig/mapReasoningEffort codex cases - models:list merges the "OpenAI Codex" catalog while signed in with ChatGPT; chatgpt:statusChanged push event on sign-in/out - composer picker shows the group gated on the session and refreshes on status changes Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .pnpm-store/v11 | ||
| apps | ||
| docs | ||
| packages | ||
| .gitignore | ||
| ANALYTICS.md | ||
| CODE_MODE_ENGINES_PLAN.md | ||
| demo.gif | ||
| eslint.config.mts | ||
| GRANOLA_PARITY.md | ||
| LIVE_NOTE.md | ||
| MINI_APPS_PLAN.md | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| tsconfig.base.json | ||
| VIDEO_MODE.md | ||