Repository navigation
feat(core): add separate ChatGPT token-sharing OAuth method - #52147
Merged
Merged
Conversation
Register user-owned ChatGPT OAuth clients, verify ID tokens, and secure stored credentials. Use account-visible Responses models with stateless HTTP streaming and refreshed model discovery. Preserve provider diagnostics, tailor retry behavior, and show ChatGPT plan and usage guidance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chatgpt-token-sharingas a separate OAuth method under the same OpenAI provider./v1/models; use catalog models until an asynchronous refresh completes, then check every 15 minutes. Preserve the model context windows as reported.josedependency inpackages/core/package.jsonandbun.lock, plus focused plugin and provider-error coverage.Notes
v2via other PRs, so this branch is merged with currentv2and does not duplicate them.-fastentries.Verification
bun test test/plugin/provider-chatgpt.test.ts test/plugin/provider-openai.test.ts test/session-error.test.ts test/database.test.ts(frompackages/core)bun run check