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

Offen
#2,644 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
ai, backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
301
Ø Merge
3 T. 14 Std.
Gemergte PRs (30 T.)
103

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Zoo-Code-Org/Zoo-Code

Alle Issues in Zoo-Code-Org/Zoo-Code

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.