
Ollama Chat
A versatile Minecraft plugin that integrates Ollama and OpenAI-class APIs, providing multi-language support, real-time AI interactions, and advanced prompt and conversation management for immersive in-game experiences.
- Загрузки
- 903
- Подписчики
- 7
- Обновлён
- 16 июня 2026 г.
- Лицензия
- MIT
Опубликован 4 февраля 2025 г.
OllamaChat
Overview
OllamaChat is a cutting-edge Minecraft plugin that integrates Ollama and OpenAI-class APIs, enabling real-time AI interactions, multi-language support, and advanced prompt and conversation management for immersive in-game experiences.
Example

Features
- AI-Powered Conversations: Chat with AI using
@botor@aiprefixes for dynamic, intelligent responses. - Ollama & OpenAI Integration: Leverage advanced AI models to enhance your Minecraft experience.
- Multi-Language Support: Supports multiple languages (e.g., English, Simplified Chinese) via
langfolder files. - Toggle AI Services: Enable/disable AI services with
/ollamachat toggle <ai-name>. - Prompt Management: Create, delete, list, select, or clear custom prompts to tailor AI interactions.
- Conversation Management: Start, switch, delete, or view player-specific conversations with AI entities.
- Smart Response Suggestions: Generate configurable, clickable follow-up suggestions with hover text and rate limiting.
- Progress Display: Visual status bar for prompt answer generation (0% to 100%).
- Public API:
OllamaChatAPIfor plugin extensibility and AI query support.
Usage
Chatting with AI
Type @bot or @ai followed by your message in Minecraft chat to interact with the AI.
Example:
@bot What's the best way to build a castle?
Commands
| Command | Permission | Description |
|---|---|---|
/ollamachat reload |
ollamachat.reload |
Reloads plugin configuration and language files. |
/ollamachat help |
Shows general command list. | |
/ollamachat help <command> |
Shows detailed help for a specific command. | |
/ollamachat toggle <ai-name> |
ollamachat.toggle |
Enables/disables specified AI service. |
/aichat <ai-name> <prompt> |
ollamachat.use |
Interacts with other AI services. |
/ollamachat prompt set <promptName> <promptContent> |
ollamachat.prompt.set |
Creates a new prompt. |
/ollamachat prompt delete <promptName> |
ollamachat.prompt.delete |
Deletes a prompt. |
/ollamachat prompt list |
ollamachat.prompt.list |
Lists all prompts. |
/ollamachat prompt select <promptName> |
ollamachat.prompt.select |
Sets default prompt. |
/ollamachat prompt clear |
ollamachat.prompt.select |
Resets default prompt. |
/ollamachat conversation new <aiName> <convName> |
ollamachat.conversation.new |
Starts a new conversation. |
/ollamachat conversation select <aiName> <convName> |
ollamachat.conversation.select |
Switches conversations. |
/ollamachat conversation delete <aiName> <convName> |
ollamachat.conversation.delete |
Deletes a conversation. |
/ollamachat conversation list <aiName> |
ollamachat.conversation.list |
Lists conversations for an AI. |
/ollamachat suggests toggle |
ollamachat.suggests.toggle |
Toggles suggested responses. |
/ollamachat suggests-presets toggle |
ollamachat.suggests-presets.toggle |
Toggles preset suggested responses. |
/ollamachat search toggle |
ollamachat.search.toggle |
Enables/disables web search functionality. |
/ollamachat search status |
ollamachat.search.status |
Displays current search configuration. |
/ollamachat search query <text> |
ollamachat.search.query |
Performs a manual web search and gets AI response. |
/ollamachat search engine [name] |
ollamachat.search.engine |
Shows or changes the active search engine. |
/ollamachat search setkey <engine> <key> |
ollamachat.search.setkey |
Sets API key for specified search engine. |
/ollamachat search setcount <number> |
ollamachat.search.setcount |
Configures number of search results (1-50). |
/ollamachat search addkeyword <word> |
ollamachat.search.keywords |
Adds a trigger keyword for auto-search. |
/ollamachat search removekeyword <word> |
ollamachat.search.keywords |
Removes a trigger keyword. |
/ollamachat search listkeywords |
ollamachat.search.keywords |
Lists all configured trigger keywords. |
Permissions
| Permission | Description |
|---|---|
ollamachat.reload |
Allows reloading plugin configuration and language files. |
ollamachat.toggle |
Allows enabling/disabling AI services. |
ollamachat.use |
Allows sending messages to AI services. |
ollamachat.prompt.set |
Allows creating and saving new prompts. |
ollamachat.prompt.delete |
Allows deleting prompts. |
ollamachat.prompt.list |
Allows listing all prompts. |
ollamachat.prompt.select |
Allows selecting or clearing default prompt. |
ollamachat.conversation.new |
Allows starting new conversations. |
ollamachat.conversation.select |
Allows switching between conversations. |
ollamachat.conversation.delete |
Allows deleting conversations. |
ollamachat.conversation.list |
Allows listing conversations for an AI. |
ollamachat.suggests.toggle |
Allows toggling suggested responses. |
ollamachat.suggests-presets.toggle |
Allows toggling preset suggested responses. |
ollamachat.search.toggle |
Allows enabling/disabling web search. |
ollamachat.search.status |
Allows viewing search configuration. |
ollamachat.search.query |
Allows performing manual web searches. |
ollamachat.search.engine |
Allows changing the search engine. |
ollamachat.search.setkey |
Allows setting API keys for search engines. |
ollamachat.search.setcount |
Allows configuring search result count. |
ollamachat.search.keywords |
Allows managing trigger keywords. |
Example:
/aichat ollama Tell me about Redstone
/ollamachat prompt set creativePrompt "Act as a creative Minecraft builder"
/ollamachat suggests toggle
Installation
- Download: Get the latest OllamaChat.
- Install: Place the
.jarfile in your server'spluginsfolder. - Configure: Edit
config.ymlto customize AI settings, prompts, and suggestions. - Reload: Use
/ollamachat reloadto apply changes.
Configuration
Customize AI interactions via config.yml:
# OllamaChat Configuration File
# ============================================================
# General Settings
# ============================================================
# Language file to use (en_us, zh_cn, etc.)
language: en_us
# Enable Ollama integration
ollama-enabled: true
# Ollama API URL
ollama-api-url: "http://localhost:11434/api/generate"
# Default Ollama model
model: "llama3"
# Maximum chat history to keep per conversation
max-history: 5
# Maximum response length (characters)
max-response-length: 500
# Chat trigger prefixes (messages starting with these will be sent to AI)
trigger-prefixes:
- "@bot"
- "@ai"
# ============================================================
# Streaming Settings
# ============================================================
stream-settings:
# Enable streaming responses
enabled: true
# ============================================================
# Prompt Settings
# ============================================================
# Default prompt name (empty for no default)
default-prompt: ""
# Custom prompts
# You can define custom prompts here that can be selected with /ollamachat prompt select
# Example:
# prompts:
# expert: "You are an expert assistant. Provide detailed and professional answers."
# friendly: "You are a friendly assistant. Keep responses casual and warm."
prompts: {}
# ============================================================
# Suggested Responses Settings
# ============================================================
# AI models to use for generating suggestions
suggested-response-models:
- "llama3"
# Enable suggested responses feature
suggested-responses-enabled: true
# Number of suggestions to generate
suggested-response-count: 3
# Cooldown between suggestion generations (seconds, 0 to disable)
suggested-response-cooldown: 10
# Enable preset suggestions (used when AI is unavailable or as fallback)
suggested-response-presets-enabled: true
# Preset suggestions (used when AI is unavailable)
suggested-response-presets:
- "I see what you mean."
- "That's interesting!"
- "Tell me more about that."
# Individual model toggles for suggestions
# You can enable/disable specific models for suggestion generation
# Example:
# suggested-response-model-toggles:
# llama3: true
# gpt-3.5-turbo: false
suggested-response-model-toggles: {}
# ============================================================
# Web Search Settings
# ============================================================
web-search:
# Enable web search feature
enabled: false
# Auto-trigger search when message contains trigger keywords
auto-trigger: true
# Keywords that trigger automatic web search
# When a user's message contains any of these words, a web search will be performed
trigger-keywords:
- "search"
- "find"
- "look up"
- "google"
- "what is"
- "who is"
- "when did"
- "where is"
# Number of search results to return (1-50)
result-count: 5
# ============================================================
# Search Engine Configuration
# ============================================================
# Choose which search engine to use: bocha or brave
# - bocha: Chinese-focused search engine (requires API key)
# - brave: International search engine (requires API key)
engine: "brave"
# ---------- Bocha Search Engine (Chinese-focused) ----------
# Website: https://www.bochaai.com/
# API Documentation: https://api.bocha.cn/v1/web-search
bocha:
# Bocha API Key (required for Bocha engine)
# Get it from: https://www.bochaai.com/ (Chinese website)
api-key: ""
# Include specific sites (only search within these domains)
# Example: ["example.com", "sample.org"]
include-sites: false
include-sites-list: []
# Exclude specific sites (exclude these domains from search)
# Example: ["spam.com", "adsite.net"]
exclude-sites: false
exclude-sites-list: []
# Time range in days (0 for unlimited)
# Restrict search results to content published within this many days
time-range: 0
# Freshness: Day, Week, Month, Quarter, Year (empty for unlimited)
# Restrict search results by how recent they are
freshness: ""
# ---------- Brave Search Engine (International) ----------
# Website: https://brave.com/search/api/
# API Documentation: https://api.search.brave.com/app/documentation
brave:
# Brave API Key (required for Brave engine)
# Get it from: https://api.search.brave.com/app/keys
api-key: ""
# Country code (e.g., US, CN, GB, DE, FR, JP, etc.)
# This affects search result relevance based on location
country: "US"
# Search language (e.g., en, zh, es, fr, de, etc.)
# Results will be prioritized in this language
search-lang: "en"
# UI language (e.g., en, zh, es, fr, de, etc.)
# Language for UI elements in search results
ui-lang: "en"
# Safe search level (off, moderate, strict)
# Filters adult content based on strictness
safe-search: "moderate"
# ---------- Search Prompt Template ----------
# Template for formatting search results for AI
# Available placeholders:
# {search_results} - The formatted search results
# {prompt} - The user's original question
prompt-template: "Based on the following search results, please answer the user's question:\n\n{search_results}\n\nUser question: {prompt}\n\nPlease provide an accurate and detailed answer based on the search results. If the search results are insufficient, please indicate that."
# ============================================================
# Database Settings
# ============================================================
database:
# Database type: sqlite or mysql
# - sqlite: Local file-based database (simpler, no setup required)
# - mysql: Remote MySQL database (better for multiple servers)
type: sqlite
# MySQL settings (only used when type is mysql)
mysql:
host: "localhost"
port: 3306
database: "ollamachat"
username: "root"
password: ""
# HikariCP connection pool settings
# These control how the database connection pool behaves
hikari:
# Maximum number of connections in the pool
maximum-pool-size: 10
# Minimum number of idle connections to maintain
minimum-idle: 2
# Maximum time (in ms) to wait for a connection from the pool
connection-timeout: 30000
# Maximum time (in ms) a connection can stay idle in the pool
idle-timeout: 600000
# Maximum lifetime (in ms) of a connection in the pool
max-lifetime: 1800000
# Cache prepared statements for better performance
cache-prep-stmts: true
# Size of the prepared statement cache
prep-stmt-cache-size: 250
# Maximum SQL length for cached prepared statements
prep-stmt-cache-sql-limit: 2048
# ============================================================
# Progress Display Settings
# ============================================================
progress-display:
# Enable progress display while AI is generating responses
enabled: true
# Display type: bossbar or actionbar
# - bossbar: Uses Minecraft's boss bar (more visible)
# - actionbar: Uses the action bar above hotbar (less intrusive)
type: "bossbar"
# BossBar color (BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW)
# Only applicable when type is "bossbar"
color: "BLUE"
# BossBar style (SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20)
# Only applicable when type is "bossbar"
style: "SOLID"
# Update interval in ticks (20 ticks = 1 second)
# How often the progress display updates
update-interval: 1
# ============================================================
# Other AI Integrations
# ============================================================
# Configure other AI models (OpenAI, Claude, etc.)
# You can add multiple AI providers here and use them with /aichat command
other-ai-configs: {}
# Example OpenAI configuration:
# openai:
# api-url: "https://api.openai.com/v1/chat/completions"
# api-key: "your-api-key-here"
# model: "gpt-3.5-turbo"
# enabled: true
# messages-format: true
#
# Example Claude configuration:
# claude:
# api-url: "https://api.anthropic.com/v1/messages"
# api-key: "your-api-key-here"
# model: "claude-3-opus-20240229"
# enabled: true
# messages-format: true
#
# Example Custom API configuration:
# custom-ai:
# api-url: "https://your-custom-api.com/generate"
# api-key: "your-api-key"
# model: "your-model-name"
# enabled: true
# messages-format: false
Contributing
We welcome contributions! Submit issues or pull requests on our GitHub repository.
License
Licensed under the MIT License. See LICENSE.
Support
For help, visit our GitHub repository or join our Community server.
Ченджлог
1.2.1-hotfixРелиз26.1.1, 26.1.2, 26.2 · 16 июня 2026 г.
Version 1.2.1-hotfix
Overview
Hotfix for clickable suggestion components that stopped working in v1.2.1
Fixes
- Clickable Suggestions: Partially reverted
SuggestedResponseHandlerto restore click-to-use functionality for suggested responses - Component Compatibility: Fixed text component rendering issue where
[Click to use]was displayed as plain text instead of an interactive element
1.2.1Релиз26.1.1, 26.1.2, 26.2 · 21 мая 2026 г.
Version 1.2.1
Overview
This release introduces Markdown formatting support for AI responses.
New Features
- Markdown Formatting: AI responses are now automatically converted from Markdown to Minecraft-compatible formatting.
Changes
- Formatter Integration:
ConfigManagernow manages Markdown formatting settings with configurable options inconfig.yml
Technical
- Markdown conversion supports: headers, bold, italic, strikethrough, code blocks, lists, blockquotes, links, and horizontal rules
1.2.0Релиз26.1.1, 26.1.2, 26.2 · 30 апреля 2026 г.
Version 1.2.0
Overview
This release introduces Folia server compatibility and refactors the search module
New Features
- Folia Compatibility: New scheduler abstraction layer compatible with Bukkit, Spigot, Paper, and Folia
Changes
- Web Search Module Restructured: Moved
WebSearchService,BochaSearchService, andBraveSearchServiceinto dedicatedcom.ollamachat.searchpackage for better code organization
1.1.9Релиз26.1, 26.1.1, 26.1.2 · 10 апреля 2026 г.
Version 1.1.9
Overview
This release focuses on improving the help system, enhancing the plugin API, and adding bStats metrics integration for better usage analytics.
New Features
- Enhanced Help System: Added
/ollamachat helpcommand with detailed subcommand documentation, providing clearer usage instructions for all commands - API Improvements: Refined the public API interface for better third-party plugin integration, with more consistent method naming and error handling
- bStats Integration: Added anonymous usage statistics collection via bStats (https://bstats.org/). You can opt-out by modifying the
plugins/bStats/config.ymlfile
Changes
- Improved command feedback messages with better formatting and color coding
- Updated language files with comprehensive help entries
1.1.8Релиз26.1, 26.1.1, 26.1.2 · 14 марта 2026 г.
Version 1.1.8
Overview
This major release introduces comprehensive web search capabilities with multi-engine support (Bocha and Brave), enhanced configuration management, and improved user experience with new commands and language switching. The update focuses on bringing real-time information retrieval to AI conversations while maintaining flexibility for international users. This version supports Minecraft 1.20.x through 1.21.x.
New Features
Web Search Integration:
- Added support for two search engines: Bocha (Chinese-focused) and Brave (International)
- Automatic web search when messages contain trigger keywords (configurable)
- Manual search command
/ollamachat search query <text>for on-demand searches - Search results are formatted and fed to AI for informed responses
- Configurable result count (1-50), site filtering, and time range restrictions
Multi-Engine Support:
- Bocha Search Engine: Chinese-focused search with site inclusion/exclusion, time range, and freshness filters
- Brave Search Engine: International search with country, language, and safe search settings
- Easy switching between engines via
/ollamachat search engine <name>
New Search Management Commands:
/ollamachat search toggle- Enable/disable web search/ollamachat search status- View current search configuration/ollamachat search engine [name]- Show/change search engine/ollamachat search setkey <engine> <key>- Set API key for engines/ollamachat search setcount <number>- Configure result count/ollamachat search addkeyword <word>- Add trigger keywords/ollamachat search removekeyword <word>- Remove trigger keywords/ollamachat search listkeywords- List all trigger keywords
Language System Improvements:
- Hot-reload language files with
/ollamachat reload
- Hot-reload language files with
Enhancements
Configuration:
- Added complete web-search configuration section with detailed comments
- Engine-specific configuration blocks for Bocha and Brave
- Configurable trigger keywords for automatic search
- Customizable search prompt template for AI context
- Removed config-version for simpler upgrades
Performance:
- Asynchronous search operations to prevent server lag
- Efficient result parsing and formatting
- Connection pooling for search API requests
Configuration Example
web-search:
enabled: false
auto-trigger: true
trigger-keywords:
- "search"
- "find"
- "what is"
result-count: 5
engine: "brave"
bocha:
api-key: ""
include-sites: false
include-sites-list: []
exclude-sites: false
exclude-sites-list: []
time-range: 0
freshness: ""
brave:
api-key: ""
country: "US"
search-lang: "en"
ui-lang: "en"
safe-search: "moderate"
prompt-template: "Based on the following search results... {search_results} ... {prompt}"
Permissions:
- New permissions added for search management:
ollamachat.search.toggle- Enable/disable searchollamachat.search.status- View search statusollamachat.search.query- Perform manual searchesollamachat.search.setkey- Set API keysollamachat.search.setcount- Configure result countollamachat.search.keywords- Manage trigger keywordsollamachat.search.engine- Change search engine
Commands Usage Examples
# Enable web search
/ollamachat search toggle
# Change search engine to Bocha
/ollamachat search engine bocha
# Set Brave API key
/ollamachat search setkey brave your-api-key-here
# Perform manual search
/ollamachat search query latest Minecraft updates
# Add trigger keyword
/ollamachat search addkeyword research
# Check search status
/ollamachat search status
# Reload configuration with new language
/ollamachat reload
API Keys:
- Bocha API key: Get from https://www.bochaai.com/
- Brave API key: Get from https://api.search.brave.com/app/keys
- Both engines require valid API keys to function
Language Files:
- Update language files to include new search-related keys
1.1.7Релиз1.21.9, 1.21.10, 1.21.11 · 27 февраля 2026 г.
Version 1.1.7
Overview
This release introduces web search capabilities through Brave Search API integration, allowing AI responses to leverage real-time information from the internet. Players can now trigger web searches directly in chat to get up-to-date, informed answers from the AI.
New Features
- Brave Search Integration:
- Added web search functionality using Brave Search API for real-time information retrieval.
- Players can trigger searches with
@web <query>in chat messages. - Search results are automatically fed into AI prompts for context-aware responses.
- Configurable Search Settings:
- Added
brave-searchsection toconfig.ymlwithenabledandapi-keyoptions. - New language messages for search feedback:
search-searching,search-empty-query, andsearch-error.
- Added
- Chat-based Search:
- Added
@webprefix support for triggering web searches directly from chat.
- Added
1.1.6Релиз1.21.9, 1.21.10, 1.21.11 · 18 октября 2025 г.
Version 1.1.6
Bug Fixes
- Fixed HikariCP dependency loading for MySQL connections
1.1.5Релиз1.21.8, 1.21.9, 1.21.10 · 31 июля 2025 г.
Version 1.1.5
Overview
This release reintroduces HikariCP for enhanced MySQL database performance and adds a public API for other plugins to interact with OllamaChat's AI chat functionality. It focuses on improving database efficiency, extensibility, and developer integration while maintaining compatibility with existing configurations.
New Features
- HikariCP Integration:
- Added HikariCP connection pooling for MySQL databases to improve performance and resource management.
- Configurable HikariCP settings in
config.ymlunderdatabase.mysql.hikarifor tuning connection pool parameters (e.g.,maximum-pool-size,connection-timeout).
- Public API:
- Introduced
OllamaChatAPIinterface (com.ollamachat.api.OllamaChatAPI) for other plugins. - Supports sending AI queries, managing conversations, and accessing chat history programmatically with methods like
sendAIQuery,createConversation, andlistConversations. - Added API documentation in
API.mdfor developer integration.
- Introduced
Enhancements
- Database Management:
- Updated
DatabaseManagerto leverage HikariCP for MySQL connections, while preserving SQLite functionality.
- Updated
- Dependency Management:
- Updated
DependencyLoaderto include HikariCP (version 5.1.0) alongside MySQL and SQLite JDBC drivers, downloaded at runtime toplugins/OllamaChat/libs. - Maintained
compileOnlyinbuild.gradlefor non-Paper dependencies to minimize JAR size.
- Updated
- Configuration:
- Added
database.mysql.hikarisection toconfig.ymlwith default settings for connection pooling. - Improved
config.ymlcomments for clarity and ease of use.
- Added
Bug Fixes
- No specific bug fixes in this release, as the focus was on new features and performance improvements.
API Usage Example
Plugin ollamaPlugin = getServer().getPluginManager().getPlugin("OllamaChat");
if (ollamaPlugin != null && ollamaPlugin.isEnabled()) {
OllamaChatAPI api = ((com.ollamachat.core.Ollamachat) ollamaPlugin).getAPI();
api.sendAIQuery(player, "ollama", "Hello, how are you?")
.thenAccept(response -> player.sendMessage("AI Response: " + response));
}
Configuration Example
database:
type: mysql
mysql:
host: localhost
port: 3306
database: ollamachat
username: root
password: ""
hikari:
maximum-pool-size: 10
connection-timeout: 30000
Notes for Upgrading
- Configuration:
- Update
config.ymlto include thedatabase.mysql.hikarisection if using MySQL. Default values are added automatically. - Backup existing
config.ymlbefore updating to avoid data loss.
- Update
- Dependencies:
- The plugin downloads HikariCP (version 5.1.0) automatically on first startup. Ensure server internet access or verify
HikariCP-5.1.0.jarinplugins/OllamaChat/libs. - Delete the
libsfolder to force re-download if dependencies are corrupted.
- The plugin downloads HikariCP (version 5.1.0) automatically on first startup. Ensure server internet access or verify
- API Integration:
- Developers can hook into
OllamaChatusingOllamaChatAPI. Addsoftdepend: [OllamaChat]toplugin.ymland refer toAPI.md.
- Developers can hook into
- Compatibility:
- This update is backward-compatible with existing configurations and databases.
- Testing:
- Test database operations (e.g.,
/ollamachat conversation new) to verify MySQL/SQLite functionality. - Check server logs for dependency loading or database errors.
- Test database operations (e.g.,
Known Issues
- HikariCP settings may require manual tuning for optimal performance based on server load and MySQL configuration.
版本 1.1.5
概述
本次更新重新引入HikariCP以提升MySQL数据库性能,并新增公共API供其他插件与OllamaChat的AI聊天功能交互。重点改进数据库效率、可扩展性和开发者集成,同时保持与现有配置的兼容性。
新特性
- HikariCP集成:
- 为MySQL数据库添加HikariCP连接池,提升性能和资源管理
- 在
config.yml的database.mysql.hikari下可配置连接池参数(如maximum-pool-size、connection-timeout)
- 公共API:
- 新增
OllamaChatAPI接口(com.ollamachat.api.OllamaChatAPI) - 支持通过编程方式发送AI查询、管理会话和访问聊天记录(如
sendAIQuery、createConversation、listConversations等方法) - 开发者文档见
API.md
- 新增
功能增强
- 数据库管理:
- 更新
DatabaseManager以使用HikariCP管理MySQL连接,同时保留SQLite功能
- 更新
- 依赖管理:
- 更新
DependencyLoader包含HikariCP(5.1.0版)及MySQL/SQLite驱动,运行时下载至plugins/OllamaChat/libs - 保持
build.gradle中非Paper依赖使用compileOnly以减小JAR体积
- 更新
- 配置优化:
- 在
config.yml新增database.mysql.hikari配置段 - 改进配置注释的清晰度
- 在
问题修复
- 本版本主要侧重新功能和性能提升,无特定问题修复
API使用示例
Plugin ollamaPlugin = getServer().getPluginManager().getPlugin("OllamaChat");
if (ollamaPlugin != null && ollamaPlugin.isEnabled()) {
OllamaChatAPI api = ((com.ollamachat.core.Ollamachat) ollamaPlugin).getAPI();
api.sendAIQuery(player, "ollama", "你好吗?")
.thenAccept(response -> player.sendMessage("AI回复: " + response));
}
配置示例
database:
type: mysql
mysql:
host: localhost
port: 3306
database: ollamachat
username: root
password: ""
hikari:
maximum-pool-size: 10
connection-timeout: 30000
升级须知
- 配置:
- 使用MySQL需更新
config.yml添加hikari配置段(默认值会自动生成) - 升级前备份现有配置
- 使用MySQL需更新
- 依赖:
- 首次启动自动下载HikariCP(5.1.0版),确保服务器联网或检查
plugins/OllamaChat/libs目录 - 依赖损坏时可删除
libs文件夹强制重新下载
- 首次启动自动下载HikariCP(5.1.0版),确保服务器联网或检查
- API集成:
- 开发者可通过
OllamaChatAPI集成,在plugin.yml添加softdepend: [OllamaChat]并参考API.md
- 开发者可通过
- 兼容性:
- 保持与现有配置和数据库的向后兼容
- 测试建议:
- 测试数据库操作(如
/ollamachat conversation new命令) - 检查服务器日志中的依赖加载和数据库错误
- 测试数据库操作(如
已知问题
- HikariCP参数可能需要根据服务器负载手动调优
Комментарии
Загружаем…