From e26a7859a8900b152e10961d91fa6ad19a8deb9c Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期四, 06 三月 2025 14:41:27 +0800 Subject: [PATCH] 首页通用对话增加 --- app/service/v2/app_driver/chat_data.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/service/v2/app_driver/chat_data.py b/app/service/v2/app_driver/chat_data.py index c5129c8..d642748 100644 --- a/app/service/v2/app_driver/chat_data.py +++ b/app/service/v2/app_driver/chat_data.py @@ -26,7 +26,7 @@ async def chat_ping(self, url, params, headers): res = await self.http_get(url, params, headers) - print(res.text) + # print(res.text) if res.status_code != 200: return 0 if res.json().get("code") == "unauthorized" or res.json().get("code") == 401: @@ -90,11 +90,11 @@ # ans = await chat.chat_parameters(url, params, headers) # print(ans) - ping_url = "http://192.168.20.116:11080/v1/system/version" - ping_url = "http://smartai.com:8294/v1/llm/list" + ping_url = "http://192.168.20.116:11080/v1/user/info" + # ping_url = "http://smartai.com:8294/v1/llm/list" # ping_url = "http://192.168.20.119:13002/console/api/workspaces" user_token = "eyJhbG|ciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiNjEzNzdiYzctZTViYy00YjhiLTgxYTYtNWZkOTVhODVlMmE4IiwiZXhwIjoxNzM5MjU3Njk1LCJpc3MiOiJTRUxGX0hPU1RFRCIsInN1YiI6IkNvbnNvbGUgQVBJIFBhc3Nwb3J0In0.w7xQrepd1dYR4iPXcbuthIZjdm45bTJFbolOM_SE9aQ" - user_token = "IjNmZTA4NmM2ZjJjMjExZWY4ZTc2MDI0MmFjMTIwMDA2Ig.Z7yNLg.XooARY7YHv-Zo1qLoXwCuDe8J0k" + user_token = "IjU4OTM5M2UyZjMyNzExZWZhZmVjMDI0MmFjMTIwMDA2Ig.Z702yg.Pmyy58wg-YBU5t50mHuqvwTDyjc" # token = "Bearer {}" token = "{}" res = await chat.chat_ping(ping_url, {}, await chat.get_chat_headers(token.format(user_token))) -- Gitblit v1.8.0