跳到正文

ChatJS

作者:im_gizmo

Access large language models from KubeJS using an OpenAI-compatible API.

收藏

截图

介绍

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

ChatJS

License

Access large language models from KubeJS using an OpenAI-compatible API.

Config

Edit the chatjs.server.toml file to change the OpenAI compatible API you are using.

Use the /chatjs set_apikey <your API Key> command to set your API Key (requires OP permission).

If everything is set up correctly, executing /chatjs models can list all available models (requires OP permission).

Example

Death message

Send a message after the player dies.

example/server_scripts/death_message

Function Calling

Enter @ai <What you want to say to AI> in Chat, the AI will execute game commands based on what you enter.

For example @ai Kill all slimes.

example/server_scripts/function_calling

License

This mod is distributed under LGPL-3.0 license

⚠️WARNING⚠️
The mod files (.jar files) published on Modrinth and CurseForge contain icon files under an ARR (All Rights Reserved) license. You are not allowed to redistribute these files elsewhere. If you need to modify the mod, you can compile it yourself from the source code (the default compilation does not include ARR-licensed content).

常见问题

ChatJS 支持哪些 Minecraft 版本?

ChatJS 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

ChatJS 怎么安装?

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

评论

登录后评论和评分

im_gizmo 的其他作品

查看全部 →