entari-plugin-hyw 3.3.5__py3-none-any.whl → 3.3.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of entari-plugin-hyw might be problematic. Click here for more details.
- entari_plugin_hyw/__init__.py +14 -351
- entari_plugin_hyw/assets/libs/tailwind.css +1 -1
- entari_plugin_hyw/assets/tailwind.input.css +1 -1
- entari_plugin_hyw/assets/template.j2 +113 -20
- entari_plugin_hyw/core/config.py +1 -0
- entari_plugin_hyw/core/pipeline.py +131 -103
- entari_plugin_hyw/core/render.py +65 -41
- entari_plugin_hyw/utils/prompts.py +26 -16
- entari_plugin_hyw/utils/search.py +233 -3
- entari_plugin_hyw-3.3.7.dist-info/METADATA +142 -0
- {entari_plugin_hyw-3.3.5.dist-info → entari_plugin_hyw-3.3.7.dist-info}/RECORD +13 -14
- entari_plugin_hyw/core/render.py.bak +0 -926
- entari_plugin_hyw-3.3.5.dist-info/METADATA +0 -142
- {entari_plugin_hyw-3.3.5.dist-info → entari_plugin_hyw-3.3.7.dist-info}/WHEEL +0 -0
- {entari_plugin_hyw-3.3.5.dist-info → entari_plugin_hyw-3.3.7.dist-info}/top_level.txt +0 -0
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: entari_plugin_hyw
|
|
3
|
-
Version: 3.3.5
|
|
4
|
-
Summary: Use large language models to interpret chat messages
|
|
5
|
-
Author-email: kumoSleeping <zjr2992@outlook.com>
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/kumoSleeping/entari-plugin-hyw
|
|
8
|
-
Project-URL: Repository, https://github.com/kumoSleeping/entari-plugin-hyw
|
|
9
|
-
Project-URL: Issue Tracker, https://github.com/kumoSleeping/entari-plugin-hyw/issues
|
|
10
|
-
Keywords: entari,llm,ai,bot,chat
|
|
11
|
-
Classifier: Development Status :: 3 - Alpha
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Requires-Python: >=3.10
|
|
18
|
-
Description-Content-Type: text/markdown
|
|
19
|
-
Requires-Dist: arclet-entari[full]>=0.16.5
|
|
20
|
-
Requires-Dist: openai
|
|
21
|
-
Requires-Dist: httpx
|
|
22
|
-
Requires-Dist: markdown>=3.10
|
|
23
|
-
Requires-Dist: crawl4ai>=0.7.8
|
|
24
|
-
Requires-Dist: jinja2>=3.0
|
|
25
|
-
Provides-Extra: dev
|
|
26
|
-
Requires-Dist: entari-plugin-server>=0.5.0; extra == "dev"
|
|
27
|
-
Requires-Dist: satori-python-adapter-onebot11>=0.2.5; extra == "dev"
|
|
28
|
-
|
|
29
|
-
<div align="center">
|
|
30
|
-
|
|
31
|
-
# Entari Plugin HYW
|
|
32
|
-
|
|
33
|
-
**Entari 智能聊天解释插件**
|
|
34
|
-
|
|
35
|
-
[](https://opensource.org/licenses/MIT) [](https://pypi.org/project/entari-plugin-hyw/) [](https://www.python.org/downloads/)
|
|
36
|
-
|
|
37
|
-
*IM 环境下的 LLM 智能解释方案*
|
|
38
|
-
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
# v3.3 迎来大幅度改动、现在图文不符
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## 🎑 效果展示
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div align="center">
|
|
50
|
-
<img src="demo.svg" alt="Chat Demo" width="100%">
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
## ✨ 功能特性
|
|
54
|
-
- **关于搜索**:一次性触发 Bing 网页与图片搜索,组合结果后再回应。
|
|
55
|
-
- 给予 `Alconna` 与 `MessageChain` 混合处理, 深度优化触发体验。
|
|
56
|
-
- **网页获取**:使用 Playwright 进行实时页面获取。
|
|
57
|
-
- **多模态理解**:支持图片视觉分析。
|
|
58
|
-
- **上下文感知**:维护对话历史记录,支持连续的多轮对话。
|
|
59
|
-
- `reaction` 表情, 表示任务开始。
|
|
60
|
-
- **OneBot 优化**:针对 OneBot 11 协议深度优化,支持解析 JSON 卡片、引用消息等特殊元素。
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## 📦 安装
|
|
65
|
-
|
|
66
|
-
### 基础安装
|
|
67
|
-
```bash
|
|
68
|
-
pip install entari-plugin-hyw
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### 搜索
|
|
72
|
-
默认通过 HTTP 请求搜索引擎(DuckDuckGo,可在配置中自定义完整搜索链接,如 `https://duckduckgo.com/?q={query}`)。
|
|
73
|
-
|
|
74
|
-
## ⚙️ 配置
|
|
75
|
-
|
|
76
|
-
请在 `entari.yml` 中添加以下配置:
|
|
77
|
-
|
|
78
|
-
```yaml
|
|
79
|
-
plugins:
|
|
80
|
-
entari_plugin_hyw:
|
|
81
|
-
# --- 基础设置 ---
|
|
82
|
-
# 触发机器人的命令列表
|
|
83
|
-
command_name_list: ["zssm", "hyw"]
|
|
84
|
-
|
|
85
|
-
# 主 LLM 模型配置(必需), 如 x-ai/grok-4.1-fast:online、perplexity/sonar
|
|
86
|
-
model_name: "gx-ai/grok-4.1-fast:free"
|
|
87
|
-
api_key: "your-api-key"
|
|
88
|
-
|
|
89
|
-
# 默认 https://openrouter.ai/api/v1
|
|
90
|
-
base_url: "openai-compatible-url"
|
|
91
|
-
|
|
92
|
-
# --- 浏览器与搜索 ---
|
|
93
|
-
headless: true
|
|
94
|
-
|
|
95
|
-
# --- 视觉配置 (可选) ---
|
|
96
|
-
# 如果未设置,将回退使用主模型
|
|
97
|
-
vision_model_name: "qwen-vl-plus"
|
|
98
|
-
vision_api_key: "your-vision-api-key"
|
|
99
|
-
vision_base_url: "your-vision_base_url"
|
|
100
|
-
|
|
101
|
-
# --- openai extra_body ---
|
|
102
|
-
extra_body:
|
|
103
|
-
reasoning:
|
|
104
|
-
effort: low
|
|
105
|
-
|
|
106
|
-
# --- 交互体验 ---
|
|
107
|
-
# 是否开启表情反应 (默认: true)
|
|
108
|
-
reaction: true
|
|
109
|
-
|
|
110
|
-
# --- 调试 ---
|
|
111
|
-
save_conversation: false
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
## 📖 使用方法
|
|
115
|
-
|
|
116
|
-
### 基础指令
|
|
117
|
-
使用配置的命令前缀与机器人交互:
|
|
118
|
-
|
|
119
|
-
```text
|
|
120
|
-
hyw 最近LLM有啥新闻, 是不是claude又被秒了
|
|
121
|
-
hyw [图片消息] 里面这人写代码怎么我一句都看不懂
|
|
122
|
-
hyw https://koishi.chat/ 怎么安装
|
|
123
|
-
[回复消息] hyw
|
|
124
|
-
[回复消息<[图片消息]>] hyw -t
|
|
125
|
-
[回复消息] hyw 补充: 这个rf的意思是github用户RF-Tar-Railt
|
|
126
|
-
[回复消息(hyw插件的输出)] /1 详细点描述
|
|
127
|
-
[回复消息(hyw插件的输出>] /那谁有多余解释器?
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### 选项参数
|
|
131
|
-
- `-t` / `--text`: 强制纯文本模式(跳过图片分析,节省 Token 或时间)。
|
|
132
|
-
|
|
133
|
-
```text
|
|
134
|
-
hyw -t 一大段话。
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### 引用回复
|
|
138
|
-
支持引用消息进行追问,机器人会自动读取被引用的消息作为上下文:
|
|
139
|
-
- **引用 + 命令**:机器人将理解被引用消息的内容(包括图片)通过 `MessageChain` 操作拼接 `Text`、`Image` 与部分 `Custom`。
|
|
140
|
-
|
|
141
|
-
UncleCode. (2024). Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper [Computer software].
|
|
142
|
-
GitHub. https://github.com/unclecode/crawl4ai
|
|
File without changes
|
|
File without changes
|