微信扫码
添加专属顾问
我要投稿
探索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+中大型企业
2025-07-29
WAIC 2025 观察:大模型进入“效率与场景”决胜期
2025-07-29
爆火了大半年,Agent 到底能干好多少活 | WAIC 特别策划
2025-07-29
AI还有哪些机会?你是否适合切入?
2025-07-29
GPT-5“全家桶”本周上线?首测:秒出网页,编程能力逆天!
2025-07-29
刚刚,微软推出AI浏览器,上网从此不一样了
2025-07-29
朋友做了一个AI产品后,我才发现这个赛道潜力巨大
2025-07-29
「All in AI」的 Shopify,分享了他们的全员 AI 落地实践,全是干货
2025-07-28
Anthropic内部团队的Claude Code实践启示
2025-05-29
2025-05-23
2025-06-01
2025-05-07
2025-05-07
2025-05-07
2025-06-07
2025-06-21
2025-06-12
2025-05-20
2025-07-29
2025-07-28
2025-07-27
2025-07-27
2025-07-25
2025-07-24
2025-07-24
2025-07-24