fix: market_screener call_xiaoguo direct to node122 instead of Hermes gateway

This commit is contained in:
hmo
2026-06-30 02:30:32 +08:00
parent f4b2467ae9
commit d4cfc5c931
2 changed files with 3 additions and 3 deletions
Binary file not shown.
+3 -3
View File
@@ -38,10 +38,10 @@ def save_json(path, data):
def call_xiaoguo(messages, timeout=API_TIMEOUT):
"""用主模型(走Hermes gateway),小果本地LLM太缩水扛不住全市场分析"""
payload = json.dumps({"model": "hermes-agent", "messages": messages,
"""小果本地LLM(通过node122直连,/etc/hosts自动走LAN或EasyTier"""
payload = json.dumps({"model": XIAOGUO_MODEL, "messages": messages,
"temperature": 0.1, "max_tokens": 2048}).encode()
req = urllib.request.Request("http://localhost:8643/v1/chat/completions", data=payload,
req = urllib.request.Request(_get_xiaoguo_url(), data=payload,
headers={"Content-Type": "application/json",
"Authorization": "Bearer hermes123"}, method="POST")
try: