diff --git a/__pycache__/market_screener.cpython-312.pyc b/__pycache__/market_screener.cpython-312.pyc index aa96a2b..ae51445 100644 Binary files a/__pycache__/market_screener.cpython-312.pyc and b/__pycache__/market_screener.cpython-312.pyc differ diff --git a/market_screener.py b/market_screener.py index 2c44b4f..7391a2a 100644 --- a/market_screener.py +++ b/market_screener.py @@ -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: