[Feature]: Support local Ollama as a model provider

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

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
ollama, typescript
領域
ai, desktop

研究方向

Start by locating the existing model-provider configuration and provider implementations, then trace how chat completions, streaming, and tool calls are handled. Check how providers expose model selection and endpoint settings before assessing what Ollama needs. Done means users can configure an Ollama URL, select installed or manually entered models, and use supported chat, streaming, and tool-calling features.

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

描述

desktop enhancement needs-triage
Product or interface

Desktop app

Use case and problem

Currently, the available providers primarily rely on cloud-hosted APIs. I want to use local models via Ollama to ensure complete data privacy, avoid sending proprietary code/data to external services, and eliminate ongoing API token costs.

Today, without native Ollama integration, users who work in privacy-sensitive or offline/air-gapped environments cannot easily connect and utilize their local models.

Desired behavior

Add "Ollama" to the list of configurable model providers:

  1. Endpoint Configuration: Allow users to specify the Ollama base URL (defaulting to http://localhost:11434, with support for custom LAN hostnames/IPs).
  2. Model Selection: Automatically fetch installed local models via Ollama's /api/tags endpoint or allow manual model tag entry (e.g., qwen2.5-coder, llama3.3).
  3. Core Features: Support standard chat completions, streaming responses, and tool/function calling where supported by the underlying local model.
Platform

Multiple platforms

Alternatives and additional context
  • Current workaround: Setting up an OpenAI-compatible proxy or reverse proxy pointing to Ollama's /v1 endpoint, which is cumbersome to configure and maintain compared to a built-in provider option.
  • Native support for Ollama would streamline local AI workflows significantly.
主要語言
TypeScript
星號
2.3k
分支
315
平均合併
3 小時 54 分鐘
30 天內合併 PR
9

環境準備

從這裡開始

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

MiniMax-AI/minimax-code 的其他 Issue

查看 MiniMax-AI/minimax-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

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

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