Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Deprecate the Assistants API (shut down by OpenAI) and remove it from the Demo

Aperta
#452 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
api, backend

Direzione di ricerca

Read CONTRIBUTING.md and the Assistants API declarations under Sources/OpenAI/Public/Models and OpenAIProtocol/OpenAIAsync/OpenAICombine, then inspect the Demo entry points named in the issue: MiscView, AssistantsView, AssistantStore, ChatStore, Conversation, ListView, and DetailView. Check the README and changelog conventions as well. Done means the package API is deprecated with guidance to Responses/Conversations, the README reflects shutdown, and the Demo no longer contains Assistants UI or calls that API and builds without deprecation warnings.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

OpenAI shut down the Assistants API on August 26, 2026 (announced August 26, 2025). The recommended replacement is the Responses API together with the Conversations API. See https://developers.openai.com/api/docs/deprecations.

The package and the Demo app both still expose it, so every Assistants request now fails.

Package

Public API that talks to the Assistants, Threads and Runs endpoints:

  • Methods on OpenAIProtocol / OpenAIAsync / OpenAICombine: assistants, assistantCreate, assistantModify, threads, threadRun, threadsAddMessage, threadsMessages, runs, runRetrieve, runRetrieveSteps, runSubmitToolOutputs
  • Types in Sources/OpenAI/Public/Models: AssistantsQuery, AssistantResult, AssistantsResult, AssistantsTool, ThreadsQuery, ThreadsResult, ThreadRunQuery, ThreadAddMessagesResult, ThreadsMessagesResult, RunsQuery, RunResult, RunRetrieveQuery, RunRetrieveStepsResult, RunToolOutputsQuery
  • README: the Assistants (Beta) section

Under the API stability policy in CONTRIBUTING.md, public API is deprecated before it is removed. Proposed steps:

  1. Mark all of the above @available(*, deprecated, message: ...), pointing to the Responses API (and Conversations API), and add a CHANGELOG entry.
  2. Update the README: remove the Assistants section or mark it as shut down.
  3. Remove the deprecated API in a later major release.

Demo

The Demo still has a working Assistants UI:

  • Misc tab → "Assistants" link (MiscView) → AssistantsView, AssistantsListView, AssistantModalContentView
  • AssistantStore, created in APIProvidedView and passed through ContentView, ChatView and MiscView
  • Assistant conversations in the Chat tab: the assistant conversation type in Conversation, the thread and run handling in ChatStore, and the special cases in ListView and DetailView (including the hardcoded gpt-4o-mini model)

Remove all of it. The Demo should also stop calling the deprecated package API, so it builds without deprecation warnings.

Lingua principale
Swift
Stelle
2.9k
Fork
519
Merge medio
4g 9h
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MacPaw/OpenAI

Tutte le issue di MacPaw/OpenAI

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.