Metadata-Version: 2.1
Name: nonebot-plugin-ollama
Version: 0.2.3
Summary: 通过ollama提供的接口，将你的nonebot连接到本地部署的基于ollama框架的模型
Author-Email: MaStAr <2024381053@mails.szu.edu.cn>
License: MIT
Requires-Python: >=3.9
Requires-Dist: nonebot2>=2.4.0
Requires-Dist: aiohttp>=3.11.10
Description-Content-Type: text/markdown

# 功能介绍
通过ollama提供的接口，
将你的nonebot连接到本地部署的基于ollama框架的LLM模型。

暂时只支持与单个模型进行纯文本聊天。

### 主要功能
@nonebot 即可进行对话

### 手动清空历史记录
@nonebot clear

当前版本：v0.2.0

# 安装说明
### nb-cli
```shell
nb plugin install nonebot-plugin-ollama
```

# 配置项
```python
#config.py
class ScopedConfig:
    model: str = "qwen2.5:0.5b"    # 填写所要使用的模型名称
    url: str = "http://127.0.0.1:11434/"    # 填写ollma所在的地址，形如http://***/
    min_priority: int = 5    # 填写优先级，数字越小优先级越高，推荐设置为低优先，
    # 该优先级为clear指令优先级，对话优先级为 min_priority+1
    max_histories: int = 50    # 填写最大历史对话记录条数
```

# 相关链接
nonebot: https://nonebot.dev/   
ollama: https://ollama.org.cn/

# 开源协议
MIT