跳到正文

chat lib

a api mod that helps to chat with ai

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

ChatLib – Minecraft AI Chat Library

A Fabric mod library providing AI chat functionality for Minecraft mods. Integrates with local Ollama service to enable intelligent dialogue capabilities.

Features

  • Local AI chat integration
  • Multi-version compatibility
  • Simple API interface
  • Asynchronous non-blocking calls

Requirements

  • Minecraft 1.20.1+
  • Fabric Loader
  • Local Ollama service

Quick Start

  1. Install and start Ollama
  2. Download model: ollama pull tinyllama
  3. Place this mod in mods folder

For Developers

AIClient client = new AIClient();
client.sendChatRequest("tinyllama", "Hello")
    .thenAccept(response -> {
        // Handle AI response
    });

License

Apache License 2.0

常见问题

chat lib 支持哪些 Minecraft 版本?

chat lib 支持 Minecraft Java 版 1.20.2–1.21.10,共 16 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

chat lib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

zhengzhengyiyi 的其他作品

查看全部 →