-
Notifications
You must be signed in to change notification settings - Fork 48
[Bug]: 日志分析过程异常 #75
Description
问题描述
分析系统日志过程异常
复现步骤
1.打开sish
2.输入需求:;请分析当前系统日志 输出问题清单: 【问题标题】
【问题描述】
【严重程度】
【行动建议】
【风险分析】
【关键日志】
3.执行回车
期望行为
可以分析当前系统中的日志,并且给出分析报告
报告包括:
【问题标题】
【问题描述】
【严重程度】
【行动建议】
【风险分析】
【关键日志】
实际行为
[表情] one-test > vim ~/.config/aish/config.yaml
[表情] one-test > ;请分析当前系统日志 输出问题清单: 【问题标题】
【问题描述】
【严重程度】
【行动建议】
【风险分析】
【关键日志】
[表情] 使用工具: system_diagnose_agent (分析当前系统日志,输出问题清单,包含以下字段:
【问题标题】
【问题描述】
【严重程度】
【行动建议】
【风险分析】
【关键日志】
请检查系统日志(如 /var/log/syslog, /var/log/messages, dmesg, journalctl 等),识别潜在问题、错误、警告,并按照上述格式输出多个问题项。每个问题项应包含完整的字段信息。优先分析最近的和严重的问题。)
╭─────────────────────────────────────────────────────────────────────────────────────────────── [表情] 大模型请求失败 ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ litellm.APIError: APIError: DeepseekException - Unable to get json response - Expecting value: line 1 column 1 (char 0), Original Response: │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
└─ [表情] 诊断工具: bash_exec (ls -la /var/log/)
总计 8697956
drwxr-xr-x 33 root root 4096 3月20日 09:26 . ...
└─ [表情] 诊断完成: bash_exec
trimmed 1 messages
╭─────────────────────────────────────────────────────────────────────────────────────────────── [表情] 大模型请求失败 ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ litellm.BadRequestError: DeepseekException - {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages │
│ following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}} │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
└─ [表情] 诊断工具: bash_exec (ls -la /var/log/syslog* /var/log/messages* 2>/dev/null || echo "Files not found")
-rw-r----- 1 root adm 1211472271 3月20日 16:54 /var/log/syslog
-rw-r----- 1 root adm 2262708146 3月20日 09:26 /var/log/syslog.1 ...
└─ [表情] 诊断完成: bash_exec
trimmed 1 messages
╭─────────────────────────────────────────────────────────────────────────────────────────────── [表情] 大模型请求失败 ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ litellm.BadRequestError: DeepseekException - {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages │
│ following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}} │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
└─ [表情] 诊断工具: bash_exec (tail -100 /var/log/syslog | head -50)
tail: 无法以读模式打开 '/var/log/syslog': 权限不够
└─ [表情] 诊断完成: bash_exec
trimmed 1 messages
╭─────────────────────────────────────────────────────────────────────────────────────────────── [表情] 大模型请求失败 ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ litellm.BadRequestError: DeepseekException - {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages │
│ following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}} │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
trimmed 1 messages
╭─────────────────────────────────────────────────────────────────────────────────────────────── [表情] 大模型请求失败 ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ litellm.BadRequestError: DeepseekException - {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages │
│ following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
AISH 版本
0.1.0-1
操作系统
UOS Desktop 25 Professional
安装方式
deb 包
AI 模型 / 提供商
deepseek
日志信息
补充信息
No response