微信扫码
添加专属顾问
我要投稿
探索AI在测试领域如何革新问题定位和分析,附赠可执行源码。 核心内容: 1. Ollama平台DeepSeek模型的日志语义理解能力 2. DeepSeek模型错误分类和故障诊断自动化 3. 增量学习特性及工程落地的智能插件化解决方案
import requests
# 定义本地部署的 DeepSeek API 地址
DEESEEK_API_URL = "http://localhost:11434/api/generate"
def call_deepseek_for_logs(input_text): """
调用 DeepSeek 推理服务进行日志分析。
"""
# 请求数据
payload = {
"model": "deepseek-r1:1.5b",
"prompt": f"从以下日志中查找与 '{input_text}' 相关的错误,并提供解决方案:\n\n{open('application.log', 'r').read()}"
}
headers = {"Content-Type": "application/json"}
try:
# 调用 DeepSeek API
response = requests.post(DEESEEK_API_URL, json=payload, headers=headers)
response.raise_for_status() # 如果 HTTP 请求失败,抛出异常
result = response.json()
return result.get("response", "")
except requests.exceptions.RequestException as e:
print(f"调用 DeepSeek API 失败: {e}")
returnNone
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2026-06-18
企业智能体的下半场,如何让智能体越用越聪明?
2026-06-18
你的 Harness 工作流真的在进步吗?我们用一场考试撕掉了遮羞布
2026-06-18
Agent 记忆,我们全都理解错了?
2026-06-18
多 Agent 并行与 Headless 模式:让 Claude Code 效率翻 10 倍
2026-06-17
拆解大模型几项核心操作背后的数学与 Infra 优化逻辑
2026-06-17
更可靠的主播助理:淘宝主播Agent的Harness工程实战
2026-06-16
Business Insider:揭秘 Cursor 的疯狂崛起
2026-06-15
如何搭建一个端到端业务需求专家 Agent
2026-04-15
2026-04-07
2026-04-07
2026-03-31
2026-03-21
2026-04-24
2026-04-17
2026-03-31
2026-04-05
2026-04-02
2026-06-18
2026-06-18
2026-06-10
2026-06-10
2026-06-07
2026-06-06
2026-06-03
2026-06-02