Genius

Paper Minecraft 服务器的语言模型集成。

资源图片
# Genius [![Latest Release](https://img.shields.io/github/release/fletchly/genius.svg?color=6cd113)](https://github.com/fletchly/genius/releases/latest) [![License](https://img.shields.io/github/license/fletchly/genius.svg?color=2664ff)](https://github.com/fletchly/genius/blob/main/LICENSE) Language model integration for Paper/Spigot/Bukkit Minecraft Servers ## Downloads - [Paper/Spigot/Bukkit](https://modrinth.com/plugin/genius/versions) ## Features - Interact with a language model directly from Minecraft chat - Configurable model, name, response context, and response length. ## Commands | Command | Permissions | Usage | |--------------------|-------------|--------------------| | `/genius ` | genius.use | Talk to genius | | `/g ` | genius.use | Alias of `/genius` | ## Setup **重要提示:** 在开始使用 Genius 之前,您需要指定一个语言模型 API。 此插件与遵循 OpenAI Completions API 规范的任何语言模型兼容。 这包括所有 OpenAI 模型,以及许多采用相同标准的第三方模型。 单击 [此处](https://github.com/fletchly/genius/blob/main/supported-models.md) 以获取经过测试和确认可与此插件一起使用的模型列表。 如果您不在乎使用哪个模型,请按照 [快速入门指南]() 以尽可能快的速度启动 Genius。 确定您的 API 详细信息后,将它们粘贴到插件的 config.yml 中的 `api-config` 属性中,即可开始使用了! ## Configuration | Property | Default | Description | |----------------------------------|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------| | `bot-name` | Genius | 在聊天中回复问题时出现的名称 | | `api-config.model-type` | | 要使用的语言模型。 请参见 [此处](https://github.com/fletchly/genius/blob/main/supported-models.md) 了解更多信息 | | `api-config.api-key` | | 语言模型 API 的凭据 | | `api-config.base-url` | | 语言模型 API 端点的基础 URL | | `api-config.max-tokens` | 400 | 允许的响应最大标记数 | 更多标记意味着更长的响应 | | `api-config.system-instructions` | You are a helpful assistant for players in Minecraft. Your responses are concise. Do not use markdown syntax in your responses | Genius 响应的上下文 |