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

未關閉
#2,644 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 3 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
typescript
領域
ai, backend

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
TypeScript
星號
2k
分支
301
平均合併
3 天 14 小時
30 天內合併 PR
103

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Zoo-Code-Org/Zoo-Code 的其他 Issue

查看 Zoo-Code-Org/Zoo-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。