微信扫码
添加专属顾问
我要投稿
探索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-01-31
<span class="js_title_inner">没有人类了:15万Clawdbot论坛发帖自研AI,我们根本插不上话</span>
2026-01-31
<span class="js_title_inner">OpenAI 内部 Data Agent 最佳实践</span>
2026-01-31
刚刚,谷歌版「世界模型」震撼公测!网友实测炸翻天:游戏末日来了?
2026-01-31
不好意思,我要给Clawdbot泼一盆冷水
2026-01-30
Arber碎碎念之2026版
2026-01-30
Claude Code 进阶指南:Skills、Subagents 和 MCP,官方文档没写的实战经验<
2026-01-30
OpenAI o1架构师爆料:AI Scaling已到瓶颈,AGI需要会自学的模型
2026-01-30
我们这一生,都在努力传递上下文
2026-01-10
2026-01-24
2025-11-19
2025-11-13
2025-11-03
2026-01-26
2026-01-01
2025-12-09
2025-11-12
2025-11-15
2026-01-31
2026-01-30
2026-01-29
2026-01-28
2026-01-28
2026-01-28
2026-01-26
2026-01-26