signin with openai
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- authentication, backend
Direzione di ricerca
Start by reading OpenAI's SIWC token-sharing documentation and the existing @tanstack/ai-openrouter/pkce implementation. The scope also names the BYOK keyring, the ts-react-chat BYOK key dialog, the BYOK and OpenAI adapter documentation, and unit tests for the helpers. Done means the specified sign-in, callback, token refresh, UI, docs, and tests are covered, while respecting the stated token and Responses API limits.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Add "Sign in with ChatGPT" (SIWC) to BYOK, so a user can use their ChatGPT plan instead of pasting an OpenAI API key.
OpenAI docs: https://developers.openai.com/siwc/token-sharing-open-source
Scope
- New subpath
@tanstack/ai-openai/siwc, modelled on@tanstack/ai-openrouter/pkce.- Start: dynamic client registration (
client_id=dynamic_agent_client,agent_name_hint, persistedext_agent_host_id),state,nonce, PKCE S256, redirecthttp://127.0.0.1:<port>/auth/callback. - Callback: check
state, handleerror, keep the issuedclient_id, exchange the code athttps://auth.openai.com/api/accounts/oauth/token, check thatchatgpt.tokens.use.directwas granted. - Refresh on the client: keep the credential (client id, refresh token, expiry) in the BYOK keyring. A helper refreshes the access token before it expires and writes it into the
openaislot. The relay sees an ordinaryx-byok-openaibearer value.
- Start: dynamic client registration (
- No adapter change. Docs explain the SIWC Responses limits (
store: false,stream: true, notemperature/max_output_tokens/metadata/previous_response_id, no hosted tools). ts-react-chat: "Continue with ChatGPT" button in the BYOK key dialog.- Docs: BYOK page and OpenAI adapter page. Unit tests for the helpers.
Constraints
- OpenAI allows this only for open-source and locally hosted apps. Hosted apps need OpenAI's interest form.
- The redirect must be
127.0.0.1(notlocalhost) with the path/auth/callback. - Access tokens last 1 hour. Refresh tokens last 30 days and rotate on every refresh.
- Lingua principale
- TypeScript
- Stelle
- 3.1k
- Fork
- 340
- Merge medio
- 2g 7h
- PR unite (30g)
- 175
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TanStack/ai
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
update elevenlabsForse già presa @tombeckenham l’ha presa 1 giorno fa. Apertahas-pr waiting-on: maintainer
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
TanStack/ai#1564 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
onAfterToolCall failure records a second, contradictory result for a successful server toolForse già presa @AlemTuzlak l’ha presa 2 giorni fa. Apertahas-pr waiting-on: maintainer
TanStack/ai#1558 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
SSE and NDJSON response streams drain unread sources without backpressureForse già presa @tombeckenham l’ha presa 2 giorni fa. Apertahas-pr waiting-on: maintainer
TanStack/ai#1556 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Solid useChat drops earlier turns after a reactive request option changesForse già presa @AlemTuzlak l’ha presa 2 giorni fa. Apertahas-pr waiting-on: maintainer
TanStack/ai#1552 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
lichess-org/api#678 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
PostHog/posthog.com#20628 ·
I maintainer di solito rispondono entro 1 giorno
-
bug status:Needs Triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
jupyterlab/jupyterlab#19964 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
agentscope-ai/QwenPaw#8064 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: notebooks-jupyter bug theme: new notebook frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
posit-dev/positron#16347 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno