fix: market_screener call_xiaoguo direct to node122 instead of Hermes gateway
This commit is contained in:
Binary file not shown.
+3
-3
@@ -38,10 +38,10 @@ def save_json(path, data):
|
|||||||
|
|
||||||
|
|
||||||
def call_xiaoguo(messages, timeout=API_TIMEOUT):
|
def call_xiaoguo(messages, timeout=API_TIMEOUT):
|
||||||
"""调用主模型(走Hermes gateway),小果本地LLM太缩水扛不住全市场分析"""
|
"""调小果本地LLM(通过node122直连,/etc/hosts自动走LAN或EasyTier)"""
|
||||||
payload = json.dumps({"model": "hermes-agent", "messages": messages,
|
payload = json.dumps({"model": XIAOGUO_MODEL, "messages": messages,
|
||||||
"temperature": 0.1, "max_tokens": 2048}).encode()
|
"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",
|
headers={"Content-Type": "application/json",
|
||||||
"Authorization": "Bearer hermes123"}, method="POST")
|
"Authorization": "Bearer hermes123"}, method="POST")
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user