[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 摘要。