Skip to main content

通过ollama提供的接口, 将你的nonebot连接到本地部署的基于ollama框架的LLM模型。

Project description

功能介绍

通过ollama提供的接口, 将你的nonebot连接到本地部署的基于ollama框架的LLM模型。

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

当前版本:v0.1

安装说明

nb-cli

nb plugin install nonebot-plugin-ollama

配置项

#config.py
class ScopedConfig:
    model: str = "qwen2.5:0.5b"    # 填写所要使用的模型名称
    url: str = "http://127.0.0.1:11434/"    # 填写ollma所在的地址,形如http://***/
    priority: int = 5    # 填写优先级,数字越小优先级越高,推荐设置为低优先

相关链接

nonebot: https://nonebot.dev/
ollama: https://ollama.org.cn/

开源协议

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_ollama-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_ollama-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ollama-0.1.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_ollama-0.1.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for nonebot_plugin_ollama-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bdb461b797a495aa36f70f54b07430b40c231f312f2e41dc3d18f5d80cb4eedd
MD5 38e9751ac18e8e0caa5cc5d5de7dd966
BLAKE2b-256 0ec036d3485282b843934dca5b81a9775f840515ede48e043290d155c00e5ea5

See more details on using hashes here.

File details

Details for the file nonebot_plugin_ollama-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_ollama-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76da4a0537b4eddf1f6da5dc5a786f5d3a49f681506202b103c0a5beb43b2d9a
MD5 5e9805f01b17d426cfaa7906eb872a04
BLAKE2b-256 5be661ad6beb142242915cf9b8c352340545906bfedccfd3eafba5d6ebaaae38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page