▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Ollama Chat
Ollama Chat

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.

588
5
Все версииOllama Chat 1.1.4

Ollama Chat 1.1.4

Release8 мес. назад

Список изменений

Version 1.1.4

Changes in this Update:


Bug Fixes 🐛

  • Spigot and Bukkit Compatibility

Architectural 🧱

  • Database Manager Refactoring:
    • Removed HikariCP dependency and replaced connection pooling with direct DriverManager connections for MySQL and SQLite.

Dependency Management 📦

  • Runtime Dependency Loading:
    • Added DependencyLoader class to download and load dependencies (mysql-connector-java:8.0.33, sqlite-jdbc:3.46.0.0) at runtime from Maven Central to plugins/OllamaChat/libs.
    • Updated build.gradle to use compileOnly for non-Paper dependencies, reducing JAR size.
    • Modified Ollamachat main class to initialize DependencyLoader before other components.

Configuration Updates 🌐

  • Database Configuration:
    • Supports both MySQL and SQLite with fallback to SQLite if MySQL initialization fails.
    • Configuration example for config.yml:
      database:
        type: mysql
        mysql:
          host: localhost
          port: 3306
          database: ollamachat
          username: root
          password: ""
      

Important Notes:

  1. ⚠️ Configuration Requirement:
    • Ensure config.yml includes valid MySQL or SQLite settings. Missing or incorrect settings may cause fallback to SQLite.
    • Backup existing config.yml before updating to avoid data loss.
  2. 🔄 Dependency Download:
    • On first startup, the plugin downloads dependencies to plugins/OllamaChat/libs. Ensure the server has internet access.
    • Delete the libs folder to force re-download if dependencies are corrupted.

版本 1.1.4

本次更新的主要变更:


错误修复 🐛

  • Spigot 和 Bukkit 兼容性

架构 🧱

  • 数据库管理器重构
    • 移除 HikariCP 依赖,改用直接 DriverManager 连接支持 MySQL 和 SQLite。

依赖管理 📦

  • 运行时依赖加载
    • 新增 DependencyLoader 类,从 Maven Central 下载并加载依赖(mysql-connector-java:8.0.33, sqlite-jdbc:3.46.0.0)到 plugins/OllamaChat/libs
    • 更新 build.gradle,对非 Paper 依赖使用 compileOnly,减少 JAR 大小。
    • 修改 Ollamachat 主类,在其他组件初始化前加载 DependencyLoader

配置更新 🌐

  • 数据库配置
    • 支持 MySQL 和 SQLite,若 MySQL 初始化失败则回退到 SQLite。
    • config.yml 配置示例:
      database:
        type: mysql
        mysql:
          host: localhost
          port: 3306
          database: ollamachat
          username: root
          password: ""
      

注意事项:

  1. ⚠️ 配置要求
    • 确保 config.yml 包含有效的 MySQL 或 SQLite 配置,错误配置可能导致回退到 SQLite。
    • 建议备份现有 config.yml 以防数据丢失。
  2. 🔄 依赖下载
    • 首次启动时,插件会将依赖下载到 plugins/OllamaChat/libs,确保服务器具备网络连接。
    • 如依赖损坏,可删除 libs 文件夹以重新下载。

Файлы

OllamaChat-1.1.4.jar(50.10 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.1.4

Загрузчики

Bukkit
Paper
Purpur
Spigot

Версии игры

1.21–1.21.10

Загрузок

41

Дата публикации

8 мес. назад

Загрузил

ID версии

Главная