From 8b310c1dcef593d4ddd6fff0a3de00dea465484c Mon Sep 17 00:00:00 2001 From: cherishsince Date: Sun, 14 Apr 2024 13:40:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20chat=20http?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/http/chat.http | 39 +++++++++++++++++++ .../main/resources/http/http-client.env.json | 6 +++ 2 files changed, 45 insertions(+) create mode 100644 yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat.http create mode 100644 yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/http-client.env.json diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat.http b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat.http new file mode 100644 index 0000000000..03c829b856 --- /dev/null +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat.http @@ -0,0 +1,39 @@ + + +### 登录 + +POST {{baseUrl}}/admin-api/system/auth/login +Content-Type: application/json +tenant-id: 1 + +{ + "username": "admin", + "password": "123456", + "captchaVerification": "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==", + "socialCode": "1024", + "socialState": "9b2ffbc1-7425-4155-9894-9d5c08541d62", + "socialCodeValid": true +} + +### chat call +POST {{baseUrl}}/admin-api/ai/chat?prompt=中国怎么样 +tenant-id: 1 +Authorization: {{token}} + + +### chat call +POST {{baseUrl}}/ai-api/chat +tenant-id: 1 +Authorization: {{token}} + + +### chat call +GET {{baseUrl}}/chat-role/list +tenant-id: 1 +Authorization: {{token}} + + + + + + diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/http-client.env.json b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/http-client.env.json new file mode 100644 index 0000000000..5fd488f507 --- /dev/null +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/http-client.env.json @@ -0,0 +1,6 @@ +{ + "dev": { + "baseUrl": "http://127.0.0.1:48080", + "token": "Bearer 07390ff2824a4798bcfd7f9395092181" + } +} \ No newline at end of file