AskAI 图标

AskAI

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/askai
资源信息

Minecraft 版本: 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: paper purpur

标签: social technology utility

资源介绍

AskAI

GitHub Release bStats Servers Modrinth Downloads

This plugin lets you chat with your favourite AI models in-game. Supports OpenAI, Anthropic, and Google Gemini.

On 'player' mode, each player picks a provider and model, sends messages with /chat, and gets private AI responses. On 'server' mode, the server sets a single API key and model for all players to use freely.

Note

This plugin is not meant for long conversations. It operates as a single shot Q&A format. Each message is sent with fresh context.

Requirements

  • Paper or Purpur 1.20.6+

Commands

Command Description
/chat <message> Send a message to your active AI provider
/chat setkey <provider> <key> Set your API key for a provider
/chat setmodel <provider> <model> Set which model to use for a provider
/chat provider <provider> Switch your active provider
/chat status Show your current config and key status
/chat reload Reload config.yml without restarting

Providers: openai, anthropic, gemini

Permissions

Permission Default Description
askai.use All players Use /chat and /chat status
askai.setkey All players Manage keys, models, and provider selection
askai.admin OP only Set server-wide API keys in server-key mode, reload config

Key Modes

Player mode (default)

Each player sets and manages their own API keys. This is the default behavior.

Server mode

One set of API keys is shared by all players, managed by admins. Players can still choose their own provider and model, but the API key comes from the server.

To enable, set key-mode: "server" in config.yml and run '/chat reload'. Only players with askai.admin permission can set keys in this mode.

Configuration

# Encryption seed for API key storage. Set this once before first use.
# Changing it after players have set keys makes their keys unrecoverable.
encryption:
  seed: "CHANGE-ME-use-a-long-random-string-here"

# "player" (each player sets own keys) or "server" (admin sets shared keys)
key-mode: "player"

# Rate limiting per player
rate-limit:
  requests: 10
  window-seconds: 60

# Message limits
max-message-length: 2000
max-response-tokens: 1024

# System prompt prepended to all conversations
system-prompt: "You are a helpful assistant in a Minecraft server."

# Which providers are enabled
allowed-providers:
  - openai
  - anthropic
  - gemini
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Better than the original:TENEX

价格:0 墨喵币
下载量:0

查看详情
Generation 4 (Generations x Cobblemon)

价格:0 墨喵币
下载量:0

查看详情
[Font] NDS Bios

价格:0 墨喵币
下载量:0

查看详情
Command Output Hotfix

价格:0 墨喵币
下载量:0

查看详情