微信扫码
添加专属顾问
我要投稿
探索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-06-12
AI Agent的概念、自主程度和抽象层次
2025-06-12
文档解析PP-StructureV3:PDF秒变高质量Markdown文件
2025-06-12
别再被MCP协议绕晕!一文搞懂连接流程与核心架构
2025-06-12
推理模型与rag搜索结合!介绍5个马上能上手的小项目
2025-06-12
企业AI智能体的终局范式:把企业“喂进”大模型
2025-06-12
为什么我更看好Palantir的AI价值落地?
2025-06-12
如何设计一个垂直场景的入门级Multi-Agent System?
2025-06-12
Why “Context is King(上下文为王)”?
2025-05-29
2025-03-20
2025-03-21
2025-03-16
2025-03-16
2025-04-11
2025-03-20
2025-03-19
2025-03-20
2025-03-19
2025-06-12
2025-06-12
2025-06-12
2025-06-12
2025-06-12
2025-06-12
2025-06-12
2025-06-11