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/[email protected]/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/[email protected]/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 🔊 啊哦,出错了,请稍后再试吧!

相关推荐
水淹萌龙4 小时前
k8s 中使用 Service 访问时NetworkPolicy不生效问题排查
云原生·容器·kubernetes
honey ball5 小时前
R & S的EMI接收机面板
linux·运维·网络
木下-俱欢颜6 小时前
搭建基于chrony+OpenSSL(NTS协议)多层级可信时间同步服务
运维·网络安全·udp·ssl
alden_ygq7 小时前
K8S cgroups详解
容器·贪心算法·kubernetes
旧故新长7 小时前
访问 Docker 官方镜像源(包括代理)全部被“重置连接”或超时
运维·docker·容器
white.tie8 小时前
Docker部署单节点Elasticsearch
elasticsearch·docker·jenkins
柳如烟@8 小时前
在Rocky Linux 9.5上部署MongoDB 8.0.9:从安装到认证的完整指南
linux·运维·mongodb
搬码临时工8 小时前
电脑怎么远程访问服务器?4种常见的简单方法
运维·服务器·网络·异地访问
QQ2740287568 小时前
Kite AI 自动机器人部署教程
linux·运维·服务器·人工智能·机器人·web3
文牧之8 小时前
PostgreSQL 配置设置函数
运维·数据库·postgresql