Go to file
2024-08-26 21:52:44 +08:00
.vscode fix: init db 2024-06-03 00:25:29 +08:00
.gitignore fix: init db 2024-06-03 00:25:29 +08:00
index.ts chore: 更新 MiGPT 至 v4.0.0 2024-06-18 01:30:55 +08:00
package.json chore: 更新 MiGPT 至 v4.2.0 2024-08-26 21:52:44 +08:00
pnpm-lock.yaml chore: 更新 MiGPT 至 v4.2.0 2024-08-26 21:52:44 +08:00
README.md chore: use pnpm 2024-06-12 10:27:51 +08:00
tsconfig.json chore: 更新 MiGPT 至 v4.0.0 2024-06-18 01:30:55 +08:00

MiGPT

npm version

首先,安装依赖

pnpm install

然后,创建并启动 MiGPT 实例,查看如何「配置参数」

// index.ts
import { MiGPT } from "mi-gpt";

async function main() {
  const client = MiGPT.create({
    speaker: {
      userId: process.env.MI_USER,
      password: process.env.MI_PASS,
      did: process.env.MI_DID,
    },
  });
  await client.start();
}

main();

配置完成后,启动项目。

pnpm run start