Add a Rapid-MLX provider for local models on Apple Silicon

Aperta
#2,644 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
ai, backend

Direzione di ricerca

Start with the existing LM Studio provider and the shared OpenAI-compatible base provider, which the issue names as the model to copy. Find where providers are registered in the provider list and how the settings UI fields for base URL and model are wired. Done when "Rapid-MLX" appears in the list, the model fetcher reads GET /v1/models from localhost:8000, and unit tests cover the new provider.

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

Descrizione

Problem (one or two sentences)

Zoo Code has no provider for Rapid-MLX. Rapid-MLX is a local inference server for Apple Silicon Macs. Users must use the generic OpenAI Compatible provider and type the base URL, the model ID, and the model limits by hand.

Context (who is affected and when)

This affects Mac users who run local models with MLX. It occurs when they set up Zoo Code for local, offline work. LM Studio and Ollama have their own providers in Zoo Code. Rapid-MLX does not.

Desired behavior (conceptual, not technical)

The user selects "Rapid-MLX" in the provider list. Zoo Code uses http://localhost:8000/v1 as the default base URL. Zoo Code reads the model list from the server (GET /v1/models). The user selects a model and starts a task. No API key is necessary.

Constraints / preferences (optional)
  • Rapid-MLX runs on the local machine. Prompts and code do not go to a remote service.
  • The server is OpenAI-compatible (/v1/chat/completions with streaming and native tool calls). It is open source under Apache-2.0: https://github.com/raullenchai/Rapid-MLX
Request checklist
  • I searched the existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact
Acceptance criteria (optional)
  • "Rapid-MLX" shows in the provider list.
  • The model list comes from the local server.
  • A task with tool calls completes against a local Rapid-MLX server.
  • Unit tests cover the new provider.
Proposed approach (optional)

Add a small provider on top of the existing OpenAI-compatible base provider, like the LM Studio provider. Add the settings UI fields (base URL, model) and the model fetcher. I can do the work and open the Providers listing discussion if the team agrees.

Trade-offs / risks (optional)

The change adds one more provider to maintain. The provider uses the shared OpenAI-compatible code, so the extra code is small.

Lingua principale
TypeScript
Stelle
2k
Fork
301
Merge medio
3g 14h
PR unite (30g)
103

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 Zoo-Code-Org/Zoo-Code

Tutte le issue di Zoo-Code-Org/Zoo-Code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.