Skip to content

Commit 4056c5c

Browse files
committed
bug 修复
1 parent d597fca commit 4056c5c

6 files changed

Lines changed: 45 additions & 38 deletions

File tree

.claude/settings.local.json

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,47 @@
11
{
2+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
3+
"includeCoAuthoredBy": false,
24
"permissions": {
35
"allow": [
4-
"Bash(gh release list:*)",
5-
"Bash(git tag:*)",
6-
"WebFetch(domain:docs.siliconflow.cn)",
7-
"Bash(python -m py_compile:*)",
8-
"Bash(python -c \"import config_flow; print(''config_flow imported successfully'')\")",
9-
"Bash(python -c \"import services; print(''services imported successfully'')\")",
6+
"Bash",
7+
"BashOutput",
8+
"Edit",
9+
"Glob",
10+
"Grep",
11+
"KillShell",
12+
"NotebookEdit",
13+
"Read",
14+
"SlashCommand",
15+
"Task",
16+
"TodoWrite",
17+
"WebFetch",
1018
"WebSearch",
11-
"Bash(find:*)",
12-
"Bash(python:*)",
13-
"WebFetch(domain:open.bigmodel.cn)",
14-
"Read(//c/Users/**)",
15-
"Bash(cd \"C:\\Users\\djhui\\OneDrive\\Github\\ai_hub\\custom_components\\ai_hub\" and grep \"\\[<let>\\]\" intents.yaml)",
16-
"WebFetch(domain:developers.home-assistant.io)",
17-
"WebFetch(domain:www.home-assistant.io)",
18-
"Bash(cp:*)",
19-
"Bash(git checkout:*)",
20-
"Bash(for:*)",
21-
"Bash(do echo:*)",
22-
"Bash(done:*)",
23-
"Read(//c/**)",
24-
"WebFetch(domain:github.com)",
25-
"Bash(del:*)",
26-
"Bash(nul:*)",
27-
"WebFetch(domain:developers.home-assistant.dev)",
28-
"Bash(chcp:*)",
29-
"Bash(python3:*)",
30-
"mcp__serena__list_dir",
31-
"Bash(dir:*)",
32-
"mcp__open-websearch__search",
33-
"Bash(powershell:*)",
34-
"Bash(ls:*)",
35-
"mcp__serena__think_about_task_adherence",
36-
"mcp__serena__search_for_pattern"
19+
"Write",
20+
"mcp__ide",
21+
"mcp__exa",
22+
"mcp__context7",
23+
"mcp__mcp-deepwiki",
24+
"mcp__Playwright",
25+
"mcp__spec-workflow",
26+
"mcp__open-websearch",
27+
"mcp__serena",
28+
"all",
29+
"Bash(git:*)",
30+
"Read(C:\\Users\\djhui\\OneDrive\\Github\\hassio-addons-raw\\README.md)",
31+
"Read(C:\\Users\\djhui\\OneDrive\\Github\\My-HA\\respeaker-xvf3800.yaml)",
32+
"Bash(cd:*)",
33+
"Read(C:\\Users\\djhui\\OneDrive\\Github\\ai_hub\\custom_components\\ai_hub\\entity.py)"
3734
],
3835
"deny": [],
3936
"ask": []
40-
}
41-
}
37+
},
38+
"hooks": {},
39+
"alwaysThinkingEnabled": true,
40+
"outputStyle": "default",
41+
"statusLine": {
42+
"type": "command",
43+
"command": "%USERPROFILE%\\.claude\\ccline\\ccline.exe",
44+
"padding": 0
45+
},
46+
"model": "opus"
47+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ backup/
22
.spec-workflow
33
.claude/
44
/*/*/__pycache__/
5+
.serena/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1 align="center">AI Hub · 一站式免费AI服务</h1>
22
<p align="center">
33
为了让你体验各种免费的AI服务,本集成不支持任何收费模型及服务,当然你可能会需要申请账号或创建 API Key。<br>
4-
<strong>开篇致谢:</strong>前人栽树,后人乘凉。没有 <a href="https://github.com/knoop7" target="_blank">knoop7</a> 和 <a href="https://github.com/hasscc/hass-edge-tts" target="_blank">hasscc/hass-edge-tts</a> 这两个项目,就没有本集成,特此感谢!
4+
<strong>开篇致谢:</strong>前人栽树,后人乘凉。没有 <a href="https://github.com/knoop7" target="_blank">knoop7</a> 和 <a href="https://github.com/rany2/edge-tts" target="_blank">edge-tts</a> 这两个项目,就没有本集成,特此感谢!
55

66
</p>
77

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1 align="center">AI Hub · One-stop Free AI Services</h1>
22
<p align="center">
33
To allow you to experience various free AI services, this integration does not support any paid models or services. You may need to apply for an account or create an API Key.<br>
4-
<strong>Special Thanks:</strong> We stand on the shoulders of giants. Without <a href="https://github.com/knoop7" target="_blank">knoop7</a> and <a href="https://github.com/hasscc/hass-edge-tts" target="_blank">hasscc/hass-edge-tts</a>, this project would not exist!
4+
<strong>Special Thanks:</strong> We stand on the shoulders of giants. Without <a href="https://github.com/knoop7" target="_blank">knoop7</a> and <a href="https://github.com/rany2/edge-tts" target="_blank">edge-tts</a>, this project would not exist!
55
</p>
66

77
<p align="center">

custom_components/ai_hub/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def _convert_tool_message(
444444
return {
445445
"role": "tool",
446446
"tool_call_id": content.tool_call_id,
447-
"content": json.dumps(content.tool_result, ensure_ascii=False),
447+
"content": json.dumps(content.tool_result, ensure_ascii=False, default=str),
448448
}
449449

450450
def _format_tool(

custom_components/ai_hub/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"iot_class": "cloud_polling",
1010
"issue_tracker": "https://github.com/ha-china/ai_hub/issues",
1111
"requirements": ["edge-tts==7.2.7", "aiofiles", "aiohttp"],
12-
"version": "v2025.12.5"
12+
"version": "v2026.1.0"
1313
}

0 commit comments

Comments
 (0)