fix: ElephantAlpha crash, AiderHeal Ollama host, MCP integration for Hermes/NemoTron, and MCP hallucination
All checks were successful
CD Pipeline / deploy (push) Successful in 1m18s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m18s
This commit is contained in:
@@ -22,6 +22,7 @@ from typing import Optional
|
||||
|
||||
import requests
|
||||
from sqlalchemy import text
|
||||
from services.mcp_context_service import build_mcp_context
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -382,7 +383,10 @@ class HermesAnalystService:
|
||||
if not items:
|
||||
return [], []
|
||||
|
||||
mcp_ctx = build_mcp_context(topics=["market_trends", "holiday_calendar", "seasonal_insights"])
|
||||
|
||||
prompt = (
|
||||
f"【市場外部情報 (MCP)】\n{mcp_ctx}\n\n"
|
||||
f"分析以下 {len(items)} 支商品的競價威脅,回傳前 {TOP_N} 個最高風險商品。\n\n"
|
||||
f"資料:{json.dumps(items, ensure_ascii=False)}\n\n"
|
||||
f"輸出格式(JSON 陣列,每筆含):\n"
|
||||
|
||||
Reference in New Issue
Block a user