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

Abierto
#2,644 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
ai, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
301
Merge medio
3 d 14 h
PR fusionados (30 d)
103

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Zoo-Code-Org/Zoo-Code

Todos los issues de Zoo-Code-Org/Zoo-Code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.