Repository navigation
Comparing changes
Open a pull request
base repository: 18TierCoder/auth2api
base: main
head repository: AmazingAng/auth2api
compare: main
- 9 commits
- 52 files changed
- 3 contributors
Commits on Apr 9, 2026
-
Refactor/restructure and api fixes (AmazingAng#13)
* refactor: restructure project layout, unify streaming, fix OpenAI API parameter gaps
Configuration menu - View commit details
-
Copy full SHA for 7b45925 - Browse repository at this point
Copy the full SHA 7b45925View commit details
Commits on Apr 25, 2026
-
Add Claude Opus 4.7 model and alias
Introduce support for the new Claude Opus 4.7 model across the codebase and docs. Updates include: README and README_CN to list claude-opus-4-7 and change the `opus` alias to point to it; src/server.ts to include the new model in SUPPORTED_MODELS; src/upstream/translator.ts to update the alias mapping (`opus` -> `claude-opus-4-7`) and add an explicit passthrough entry; and tests/unit.test.ts to reflect the new alias mapping and model passthrough checks. These changes add first-class support for Opus 4.7 and keep tests and documentation in sync.
Configuration menu - View commit details
-
Copy full SHA for d2beafe - Browse repository at this point
Copy the full SHA d2beafeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8054e5d - Browse repository at this point
Copy the full SHA 8054e5dView commit details
Commits on Apr 26, 2026
-
Add Codex provider & refresh/reload improvements
Introduce first-class support for the Codex (ChatGPT) provider and a number of account/refresh management improvements. Key changes: - Add Codex OAuth flow, token refresh, and upstream codex API/models; extract planType/chatgpt account id from id_token. - Extend AccountManager: per-provider refresh policies (expires-lead / since-last-refresh), single-flight refresh locks, reload-from-disk (upsert) semantics, reauth cooldown for exhausted refresh tokens, reasoning token accounting, and richer snapshots (planType, reasoning token totals). - Callback server made configurable (port/path/timeout) to support multiple providers. - README and README_CN updated to document multi-provider usage, routing by model name, /admin/reload behavior, model lists, and Codex caveats. - Add utilities (jwt, notify-reload), new provider/provider types, tests for codex, and supporting upstream/streaming changes. - Small tooling tweaks: expanded .gitignore, test script and prettier target updates, and configuration entries for codex CLI headers. These changes enable using ChatGPT Plus/Pro subscriptions as an upstream (codex) while preserving robust token rotation handling and allowing hot-reload of newly-issued tokens without restarting the server.
Configuration menu - View commit details
-
Copy full SHA for 411d4ae - Browse repository at this point
Copy the full SHA 411d4aeView commit details
Commits on May 2, 2026
-
Add experimental Cursor provider support
Introduce an experimental Cursor upstream provider and wiring across the codebase. Adds browser PKCE deep-link login, poll-based auth, token refresh/expiry handling, and storage for Cursor accounts (src/auth/cursor/*). Implements a Cursor upstream client and decoder (src/upstream/cursor-api.ts, responses-translator.ts) to translate Cursor streaming protocol into OpenAI Responses and Anthropic Messages formats, plus related provider plumbing (src/providers/cursor.ts) and tests (tests/cursor.test.ts, tests/responses-translator.test.ts). Update config example, README (EN/CN) and model/routing docs to document Cursor behavior, cursor-exclusive mode, and cloaking headers; adjust token storage, types, handlers, upstream streaming, and HTTP utilities to support Cursor's HTTP/2/connect+proto polling and streaming. Also add a small abort helper (src/utils/abort.ts) and an HTTP2 GET helper for reliable polling against api2.cursor.sh. The Cursor integration is flagged as reverse-engineered/experimental and includes safeguards for missing refresh tokens and transient network errors.
Configuration menu - View commit details
-
Copy full SHA for 4823e1a - Browse repository at this point
Copy the full SHA 4823e1aView commit details -
Merge branch 'main' into feat/codex-provider
Brings in PR AmazingAng#20 (fix(openai): improve API compat and tidy SSE framing): - translator.ts: SSE framing ("data: ...\n\n") is now produced inside the translator's makeChunk / [DONE] handler instead of by the caller. Drop the now-redundant ".map((c) => `data: ${c}\n\n`)" wrapper in createChatCompletionsHandler's anthropic-translation streaming path so we don't end up with a double "data:" prefix. - translator.ts: support reasoning_effort: "minimal", treat OpenAI "developer" role like "system", inject a system hint when the client asks for response_format: { type: "json_object" } (Chat) or text.format: { type: "json_object" } (Responses), and honor multiple Responses "system" items. - README/README_CN: keep our richer multi-provider/Codex/Cursor docs and per-account reload docs; absorb the new "Structured JSON output" feature bullet and "request statistics" wording from main. 187/187 tests still green; build clean. Co-authored-by: Cursor <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 585c2be - Browse repository at this point
Copy the full SHA 585c2beView commit details -
Merge pull request AmazingAng#21 from AmazingAng/feat/codex-provider
Add Codex provider & refresh/reload improvements
Configuration menu - View commit details
-
Copy full SHA for aa087c3 - Browse repository at this point
Copy the full SHA aa087c3View commit details
Commits on May 9, 2026
-
Add per-request stats and /admin/stats endpoint
Introduce a stats subsystem that logs each authenticated request to <auth-dir>/stats.jsonl and maintains an in-memory aggregate. Added StatsRecorder (src/stats/recorder.ts) and storage plumbing, a configurable stats.enabled flag in config, and wiring in startServer/createServer to start/stop the recorder. Server now seeds per-request stats context and uses a finish middleware to record success/failure, latency and usage; handlers call tagStatsModel/tagStatsUsage to populate model/provider/usage. Exposed aggregated snapshot via GET /admin/stats and documented the feature in README(s) and config.example.yaml. Also kept existing provider usage recording but now forwards usage into the stats recorder.
Configuration menu - View commit details
-
Copy full SHA for 840fa10 - Browse repository at this point
Copy the full SHA 840fa10View commit details
Commits on Jul 1, 2026
-
Add codex responses compact support
Adds a standalone `/responses/compact` flow for Codex, including route aliases, request normalization, session seeding, and usage tracking. Also expands Anthropic model aliases and compact beta inference, and makes tool-argument parsing tolerant of malformed JSON.
Configuration menu - View commit details
-
Copy full SHA for a34c011 - Browse repository at this point
Copy the full SHA a34c011View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main