Windows docker 部署MiGPT+ 本地Ollama

  1. 下载 MiGPT

https://github.com/idootop/mi-gpt

https://github.com/idootop/mi-gpt/releases/tag/v4.2.0

  1. 运行 Ollama qwen模型

3.配置Mi GPT

.env

.migpt.js

运行docker

运行 需要上网

复制代码
docker run -d --env-file D:/LLM/mi-gpt-4.2.0/.env -v D:/LLM/mi-gpt-4.2.0/.migpt.js:/app/.migpt.js idootop/mi-gpt:latest

运行需要小米账号授权

报错 可能接口不一致导致

2024-10-13 18:47:07

2024-10-13 18:47:19 2024/10/13 10:47:19 Speaker ✅ 服务已启动...

2024-10-13 18:47:32 2024/10/13 10:47:32 Speaker 🔥 请写一个十个字的小作文

2024-10-13 18:47:34 2024/10/13 10:47:34 Speaker 🔊 让我先想想

2024-10-13 18:47:48 2024/10/13 10:47:48 Open AI ❌ LLM 响应异常 APIConnectionError: Connection error.

2024-10-13 18:47:48 at OpenAI.makeRequest (/app/node_modules/.pnpm/openai@4.56.0/node_modules/openai/core.js:304:19)

2024-10-13 18:47:48 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

2024-10-13 18:47:48 at async OpenAIClient.chatStream (/app/dist/index.cjs:1253:20) {

2024-10-13 18:47:48 status: undefined,

2024-10-13 18:47:48 headers: undefined,

2024-10-13 18:47:48 request_id: undefined,

2024-10-13 18:47:48 error: undefined,

2024-10-13 18:47:48 code: undefined,

2024-10-13 18:47:48 param: undefined,

2024-10-13 18:47:48 type: undefined,

2024-10-13 18:47:48 cause: FetchError: request to http://192.168.2.101:11435/chat/completions failed, reason: connect ECONNREFUSED 192.168.2.101:11435

2024-10-13 18:47:48 at ClientRequest.<anonymous> (/app/node_modules/.pnpm/node-fetch@2.7.0/node_modules/node-fetch/lib/index.js:1501:11)

2024-10-13 18:47:48 at ClientRequest.emit (node:events:519:28)

2024-10-13 18:47:48 at Socket.socketErrorListener (node:_http_client:500:9)

2024-10-13 18:47:48 at Socket.emit (node:events:519:28)

2024-10-13 18:47:48 at emitErrorNT (node:internal/streams/destroy:169:8)

2024-10-13 18:47:48 at emitErrorCloseNT (node:internal/streams/destroy:128:3)

2024-10-13 18:47:48 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {

2024-10-13 18:47:48 type: 'system',

2024-10-13 18:47:48 errno: 'ECONNREFUSED',

2024-10-13 18:47:48 code: 'ECONNREFUSED'

2024-10-13 18:47:48 }

2024-10-13 18:47:48 }

2024-10-13 18:47:48 2024/10/13 10:47:48 Speaker 🔊 啊哦,出错了,请稍后再试吧!

相关推荐
秣宇1 分钟前
银河麒麟服务器操作系统关闭 Swap 分区
linux·运维·服务器·github·kylin
RisunJan2 分钟前
Linux命令-usernetctl(已废弃 - 通过 usermode-helper 控制网络接口的包装器)
linux·运维·服务器
IT大白鼠5 分钟前
容器安全入门:K8s常见基础安全风险通俗解读
安全·容器·kubernetes
chaochaoIT12310 分钟前
2026中小企业进销存技术选型标准|从架构、数据、运维多维度商用能力核验
大数据·运维·架构·能源·制造·零售·交通物流
小白一枚1314 分钟前
[学习笔记]Kafka 篇:从原理到实战的一站式指南
大数据·运维·elk·kafka·个人开发
伞伞悦读20 分钟前
Docker 安装 MinIO 完整教程(新手友好版)
docker·容器·eureka
码农爱学习34 分钟前
ClaudeCode搭配DeepSeek在Windows和Linux中的安装教程
linux·运维·windows
我滴老baby39 分钟前
多个内网服务怎么统一入口?部署 Nginx Proxy Manager 配置反向代理与 SSL
运维·nginx·ssl
Lethehong41 分钟前
把Blinko放进极空间:Docker 部署自托管笔记,并实现多设备远程访问
笔记·docker·容器
FIT2CLOUD飞致云42 分钟前
智能运维如何落地?WorkBuddy+ JumpServer Skills给你答案
运维·开源·1panel·运维面板