微信扫码
添加专属顾问
我要投稿
探索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-10-29
4大阶段,10个步骤,助你高效构建企业级智能体(Agent)
2025-10-29
DocReward:让智能体“写得更专业”的文档奖励模型
2025-10-29
沃尔沃RAG实战:企业级知识库,早就该放弃小分块策略
2025-10-29
大模型的Funcation Calling是什么?
2025-10-29
Claude发布新功能Agent Skills,让你的Agent更专业
2025-10-29
星环科技AI Infra平台:重构企业AI基础设施
2025-10-29
SOFA AI 网关基于 Higress 的落地实践
2025-10-29
Claude Skills 可能比 MCP更重要!
2025-08-21
2025-08-21
2025-08-19
2025-09-16
2025-09-08
2025-10-02
2025-09-17
2025-08-19
2025-09-29
2025-08-20
2025-10-29
2025-10-29
2025-10-28
2025-10-28
2025-10-27
2025-10-26
2025-10-25
2025-10-23