LLM NPC 插件 — Lite
让你的 Citizens 模组 NPC 拥有由本地大语言模型驱动的真实对话——无需云端 API,也无需按消息付费。将一个 NPC 绑定到人格文件,玩家即可在聊天栏与其交谈。
功能
功能
- 本地优先:在你的硬件上通过 LM Studio 运行——零 API 费用,数据完全不出你的服务器
- 提示注入防护与启动配置验证(安全标准与付费版一致——Lite 版从未妥协)
- 流式回复,让玩家看到响应自然逐字出现
- 速率限制与优雅降级,应对 LLM 响应缓慢或不可用的情况
- 每位玩家/NPC 保留 3 轮对话记忆
- 完整的 messages.yml 本地化支持
依赖项
- Citizens —— 用于 NPC 交互
- 一个本地 OpenAI 兼容的 chat-completions 服务器,运行在你的机器或网络上。以下任意一种均可:
- LM Studio —— 默认
config.yml 端点 (http://localhost:1234/v1/chat/completions) 已预配置为此服务
- Ollama —— 将
llm.endpoint 设置为 http://localhost:11434/v1/chat/completions,并将 llm.model 设置为你下载的模型名称(例如 qwen2.5:7b)
- 任何提供 OpenAI 兼容
/v1/chat/completions 接口的其他服务器(text-generation-webui、vLLM、llama.cpp server 等)
- 无需云 API 密钥,数据不会离开你的机器
Lite 版与 Premium 版对比
Lite 版限制为 1 个绑定的 NPC 和 3 轮记忆,以保持其真正免费且可持续。如果需要更多 NPC、更深的记忆、云提供商支持、开发者 API 或 PlaceholderAPI 集成?请查看 Premium 版的介绍页面。
LLM NPC Plugin — Lite
Give your Citizens NPCs real conversations powered by a local LLM — no cloud
API, no per-message cost. Bind one NPC to a personality file, and players can
just talk to it in chat.
Features
Features
- Local-first: runs against LM Studio on your own hardware — zero API
cost, zero data leaving your server
- Prompt-injection hardening and startup config validation (same safety
floor as the paid edition — never compromised in Lite)
- Streaming replies so players see responses arrive naturally
- Rate limiting and graceful fallback if the LLM is slow or down
- 3-turn conversation memory per player/NPC
- Full messages.yml localization
Requirements
- Citizens — required for NPC interaction
- A local OpenAI-compatible chat-completions server, running on your machine
or network. Any of these work:
- LM Studio — default
config.yml endpoint
(http://localhost:1234/v1/chat/completions) is preconfigured for this
- Ollama — set
llm.endpoint to
http://localhost:11434/v1/chat/completions and llm.model to your
pulled model name (e.g. qwen2.5:7b)
- Any other server exposing an OpenAI-compatible
/v1/chat/completions
route (text-generation-webui, vLLM, llama.cpp server, etc.)
- No cloud API key needed, no data leaves your machine
Lite vs Premium
Lite caps you at 1 bound NPC and 3-turn memory to keep it genuinely
free and sustainable. Need more NPCs, deeper memory, cloud provider
support, the developer API, or PlaceholderAPI integration? Check out the
Premium listing.
评论 0
登录后参与评分
还没有评论,来抢沙发吧