Use large language models to interpret chat messages
Project description
🎑 效果展示
✨ 功能特性
- 关于搜索:目前推荐使用 OpenRouter 的
:online参数,该参数会优先使用模型提供商的搜索、其次exa(较贵) 进行网页搜索。如果不设置 online 模式, 模型会根据提示词优先使用 jina / playwright(成功率较低) 获取渲染 bing / google 混合搜索结果。 - 给予
Alconna与MessageChain混合处理, 深度优化触发体验`。 - 网页获取:支持通过 Jina AI 或 Playwright 进行实时页面获取。
- 多模态理解:无缝处理文本与图片。自动对文档/截图进行 OCR 文字识别,对照片进行视觉分析。
- 上下文感知:维护对话历史记录,支持自然、连续的多轮对话。支持保存对话历史记录搭到本地研究。
- OneBot 优化:针对 OneBot 11 协议深度优化,支持解析 JSON 卡片、引用消息等特殊元素。
reaction表情, 表示任务开始。
📦 安装
基础安装
pip install entari-plugin-hyw
启用 Playwright 支持
如果你希望使用 Playwright 进行本地网页渲染(而非仅使用 Jina AI):
pip install entari-plugin-hyw[playwright]
playwright install chromium
⚙️ 配置
请在 entari.yml 中添加以下配置:
plugins:
entari_plugin_hyw:
# --- 基础设置 ---
# 触发机器人的命令列表
command_name_list: ["zssm", "hyw"]
# 主 LLM 模型配置(必需)(推荐 online 模式), 如 x-ai/grok-4.1-fast:online、perplexity/sonar
# 如果不设置 online 模式, 模型会根据提示词优先使用 jina / playwright(成功率较低) 获取渲染 bing / google 混合搜索结果
model_name: "gx-ai/grok-4.1-fast:online"
api_key: "your-api-key"
# 默认 https://openrouter.ai/api/v1
base_url: "openai-compatible-url"
# --- 浏览器与搜索 ---
# 网页浏览工具: "jina" (默认) 或 "playwright"
browser_tool: "jina"
# 可选: Jina AI API Key (配置以获得更高限额)(免费方案20/min)
jina_api_key: "jina_..."
# Playwright 设置
headless: true
# --- 视觉配置 (可选) ---
# 如果未设置,将回退使用主模型
vision_model_name: "qwen-vl-plus"
vision_api_key: "your-vision-api-key"
vision_base_url: "your-vision_base_url"
# --- openai 协议 extra_body ---
extra_body:
reasoning:
effort: low
# --- 调试 ---
save_conversation: false
📖 使用方法
基础指令
使用配置的命令前缀与机器人交互:
hyw 最近LLM有啥新闻, 是不是claude又被秒了
hyw [图片消息] 里面这人写代码怎么我一句都看不懂
hyw https://koishi.chat/ 怎么安装
[回复消息] hyw
[回复消息<[图片消息]>] hyw -t
[回复消息] hyw 补充: 这个rf的意思是github用户RF-Tar-Railt
[回复消息(hyw插件的输出)] /1 详细点描述
[回复消息(hyw插件的输出>] /那谁有多余解释器?
选项参数
-t/--text: 强制纯文本模式(跳过图片分析,节省 Token 或时间)。
hyw -t 一大段话。
引用回复
支持引用消息进行追问,机器人会自动读取被引用的消息作为上下文:
- 引用 + 命令:机器人将理解被引用消息的内容(包括图片)通过
MessageChain操作拼接Text、Image与部分Custom。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entari_plugin_hyw-2.2.6.tar.gz.
File metadata
- Download URL: entari_plugin_hyw-2.2.6.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b04407585600154420fe0a078bf28b4ae402b8bbe57a81d449c13df6f52c975
|
|
| MD5 |
c81745846341e06e29a04c920fa4df92
|
|
| BLAKE2b-256 |
63d54bd0439d93c8007e7dcce1e567cf136ac0e0622c628b1131f21b0c037e95
|
Provenance
The following attestation bundles were made for entari_plugin_hyw-2.2.6.tar.gz:
Publisher:
publish.yml on kumoSleeping/entari-plugin-hyw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
entari_plugin_hyw-2.2.6.tar.gz -
Subject digest:
1b04407585600154420fe0a078bf28b4ae402b8bbe57a81d449c13df6f52c975 - Sigstore transparency entry: 725926095
- Sigstore integration time:
-
Permalink:
kumoSleeping/entari-plugin-hyw@949e7e4836261336678ae468fcc670e1a020da75 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kumoSleeping
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@949e7e4836261336678ae468fcc670e1a020da75 -
Trigger Event:
push
-
Statement type:
File details
Details for the file entari_plugin_hyw-2.2.6-py3-none-any.whl.
File metadata
- Download URL: entari_plugin_hyw-2.2.6-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ce4afa96c279941b4e8a850eef9558d63d2143af083571ca80a9ac4b6b32cc7
|
|
| MD5 |
22d5504e6112636b76a9dff40b207398
|
|
| BLAKE2b-256 |
4f72c63b0910e492a063b423f4a4347b4ed63d9b30920c9e9854d33e195859c3
|
Provenance
The following attestation bundles were made for entari_plugin_hyw-2.2.6-py3-none-any.whl:
Publisher:
publish.yml on kumoSleeping/entari-plugin-hyw
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
entari_plugin_hyw-2.2.6-py3-none-any.whl -
Subject digest:
6ce4afa96c279941b4e8a850eef9558d63d2143af083571ca80a9ac4b6b32cc7 - Sigstore transparency entry: 725926128
- Sigstore integration time:
-
Permalink:
kumoSleeping/entari-plugin-hyw@949e7e4836261336678ae468fcc670e1a020da75 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kumoSleeping
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@949e7e4836261336678ae468fcc670e1a020da75 -
Trigger Event:
push
-
Statement type: