DeepTutor icon indicating copy to clipboard operation
DeepTutor copied to clipboard

[Feature Request]: Add ChatGPT Plan sign-in to DeepTutor

Open iSanae233 opened this issue 1 week ago • 1 comments

Do you need to file a feature request?

  • [x] I have searched the existing feature request and this feature request is not already filed.
  • [x] I believe this is a legitimate feature request, not just a question or bug.

Feature Request Description

Add ChatGPT Plan to Settings → Providers → Add provider in Open DeepTutor Desktop. Users sign in with their ChatGPT account in the system browser and can separately allow Open DeepTutor to use their plan for eligible text requests.

  • Providers manages the account, including sign-in, authorization status, usage settings, and disconnect. Completing authorization leaves model settings unchanged.
  • Language models loads the models available to the authorized account. Users select a model and apply it through the existing settings workflow.
  • Chat identifies the ChatGPT plan as the usage source whenever the selected model uses this connection.

Related Module

Frontend/Web

Use Case

A user with an eligible ChatGPT subscription wants to use Open DeepTutor for text conversations without creating a Platform API key. Keeping account setup in Providers and model selection in Language models follows the existing settings structure and lets users choose their preferred model after granting access.

Additional Context

  • Suggested initial scope is single-user Desktop on loopback, streamed text conversations, and account-specific model discovery. Embeddings, audio, multimodal inputs, and native tool calls can remain outside this initial scope.
  • The implementation in #2885 uses the documented Sign in with ChatGPT flow, a separate encrypted credential store, and the public Responses endpoint. It does not depend on the DevKit source or reuse existing Codex credentials.
  • Browser and loopback tests covered account switching, model selection, revocation retries, Desktop request authentication, and reply preservation after a failed regeneration.
  • An earlier Apple Silicon test package reused an authorized ChatGPT account, listed 10 available models, and completed a streamed reply with gpt-6.2-sol. A fresh live-account test of a package built from the PR’s current commit is still needed.
  • OpenAI references include the Sign in with ChatGPT DevKit, the ChatGPT plan usage guide, and the preview limitations.

iSanae233 avatar Nov 22 '26 07:11 iSanae233

I’ve opened #2885 with an implementation for the initial Desktop scope described here.

The PR keeps account authorization in Providers and model selection in Language models. It also adds plan-usage indicators in Chat, local credential isolation, and controls for disconnecting or retrying remote revocation.

An earlier Apple Silicon test package listed the authorized account’s models and completed a streamed text reply. The PR has automated and simulated coverage for the updated implementation. A live-account test using a package built from the current PR commit is still needed.

Feedback on the scope and implementation is welcome, especially around the Desktop authentication and credential lifecycle.

iSanae233 avatar Nov 22 '26 12:11 iSanae233