From e36c3c8496e736ae737786e166f2aeb7c2cc40cf Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Wed, 15 Jan 2025 03:29:50 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?HTTPS=E5=8D=8F=E8=AE=AE=E6=9B=BF=E4=BB=A3HTTP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bun.lockb | Bin 166150 -> 166150 bytes package.json | 2 +- services/attach/index.ts | 4 ++-- test/soupAgent/chat.http | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bun.lockb b/bun.lockb index 4704e0b98847431ee8fe7bdc14d2b768d1820bdd..0e43eef29a9fdcde84bdf1b39d76b3f332048753 100755 GIT binary patch delta 183 zcmV;o07(Cak_v{B3Xm=!LP6%(A0vS@2VCuWWz!4tkhp*3Xc)gTWx!5%K}DFmu};=6 z0T`1J8!MAg8wj&lFnx?b#9RLi*q($PvSB2n*4w@|5EoGW%M}9dg>kotNcmK_I5J|! z37WFr8t7P30?X{^B?^=?oeT(59zQ?a?QTzJgB87(6}GC8-A fz5zpK5i>3@FK%UYEp%^hY%MV^GBda3BmyC1$I4R` diff --git a/package.json b/package.json index b5beb78..c018c5e 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@egg/hooks": "^1.2.0", "@egg/lark-msg-tool": "^1.21.0", "@egg/logger": "^1.6.0", - "@egg/net-tool": "^1.23.0", + "@egg/net-tool": "^1.24.0", "@egg/path-tool": "^1.4.1", "@langchain/core": "^0.3.30", "@langchain/langgraph": "^0.2.39", diff --git a/services/attach/index.ts b/services/attach/index.ts index f9ea160..23b5922 100644 --- a/services/attach/index.ts +++ b/services/attach/index.ts @@ -72,7 +72,7 @@ class AttachService extends NetToolBase { * 开始海龟汤 */ async startSoup() { - const URL = "http://10.224.124.13:8778/soup" + const URL = "https://lark-egg.ai.xiaomi.com/soup" return this.post(URL, {}).catch(() => null) } @@ -81,7 +81,7 @@ class AttachService extends NetToolBase { * @param {Chat2SoupParams} body - 聊天参数 */ async chat2Soup(body: Chat2SoupParams) { - const URL = "http://10.224.124.13:8778/host" + const URL = "https://lark-egg.ai.xiaomi.com/soup/chat" return this.post(URL, body).catch(() => null) } } diff --git a/test/soupAgent/chat.http b/test/soupAgent/chat.http index 00e2198..9aa9391 100644 --- a/test/soupAgent/chat.http +++ b/test/soupAgent/chat.http @@ -1,4 +1,4 @@ POST http://localhost:3000/bot?app=egg HTTP/1.1 content-type: application/json -{"schema":"2.0","header":{"event_id":"a953974feed34108023c8b93b2050ee8","token":"tV9djUKSjzVnekV7xTg2Od06NFTcsBnj","create_time":"1736840977726","event_type":"im.message.receive_v1","tenant_key":"2ee61fe50f4f1657","app_id":"cli_a1eff35b43b89063"},"event":{"message":{"chat_id":"oc_8c789ce8f4ecc6695bb63ca6ec4c61ea","chat_type":"group","content":"{\"text\":\"高跟鞋上带刀子么\"}","create_time":"1736840977558","message_id":"om_d8740d16da00fb65ece605492f8d0c9a","message_type":"text","update_time":"1736840977558"},"sender":{"sender_id":{"open_id":"ou_470ac13b8b50fc472d9d8ee71e03de26","union_id":"on_9dacc59a539023df8b168492f5e5433c","user_id":"zhaoyingbo"},"sender_type":"user","tenant_key":"2ee61fe50f4f1657"}}} \ No newline at end of file +{"schema":"2.0","header":{"event_id":"5831cd388aa714f2c7a1169116f7713e","token":"tV9djUKSjzVnekV7xTg2Od06NFTcsBnj","create_time":"1736839850758","event_type":"im.message.receive_v1","tenant_key":"2ee61fe50f4f1657","app_id":"cli_a1eff35b43b89063"},"event":{"message":{"chat_id":"oc_8c789ce8f4ecc6695bb63ca6ec4c61ea","chat_type":"group","content":"{\"text\":\"@_user_1 高跟鞋有刀子么\"}","create_time":"1736839850411","mentions":[{"id":{"open_id":"ou_032f507d08f9a7f28b042fcd086daef5","union_id":"on_7111660fddd8302ce47bf1999147c011","user_id":""},"key":"@_user_1","name":"小煎蛋","tenant_key":"2ee61fe50f4f1657"}],"message_id":"om_150b786da5e9fa5f1adcd9aa0b2a2caf","message_type":"text","update_time":"1736839850411"},"sender":{"sender_id":{"open_id":"ou_470ac13b8b50fc472d9d8ee71e03de26","union_id":"on_9dacc59a539023df8b168492f5e5433c","user_id":"zhaoyingbo"},"sender_type":"user","tenant_key":"2ee61fe50f4f1657"}}} \ No newline at end of file