diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 000000000..8406d508b Binary files /dev/null and b/.DS_Store differ diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http index 2c0429883..02c147e03 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/resources/http/chat-conversation.http @@ -1,36 +1,22 @@ ### 登录 详细使用 https://www.jetbrains.com/help/idea/testing-restful-web-services.html、https://www.cnblogs.com/crazymakercircle/p/14317222.html -POST {{baseUrl}}/admin-api/system/auth/login +### 对话 - 创建对话 +POST {{baseUrl}}/ai/chat/conversation/create Content-Type: application/json -tenant-id: 1 +Authorization: {{token}} { - "username": "admin", - "password": "123456", - "captchaVerification": "PfcH6mgr8tpXuMWFjvW6YVaqrswIuwmWI5dsVZSg7sGpWtDCUbHuDEXl3cFB1+VvCC/rAkSwK8Fad52FSuncVg==", - "socialCode": "1024", - "socialState": "9b2ffbc1-7425-4155-9894-9d5c08541d62", - "socialCodeValid": true + "chatType": "userChat" } -> {% - client.log(`Today is ${$isoTimestamp}`) -%} - -### chat call -GET {{baseUrl}}/ai/chat?modal=qianWen&conversationId=111&prompt=中国好看吗? -tenant-id: 1 -Authorization: {{xtoken}} - - - -### chat call -GET {{baseUrl}}/ai/chatStream?prompt=苹果是什么颜色?&modal=yiYan3_5_8k -tenant-id: 1 +### 对话 - id获取 +GET {{baseUrl}}/ai/chat/conversation/1781604279872581644 Authorization: {{token}} - +### 对话 - id获取 +DELETE {{baseUrl}}/ai/chat/conversation/1781604279872581644 +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 index a76673c48..b66e855a5 100644 --- 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 @@ -4,6 +4,6 @@ }, "dev": { "baseUrl": "http://127.0.0.1:48080", - "token": "Bearer 2f807aacab534a4095cec0bac9c2af40" + "token": "Bearer a9bf9c8c10cb47fc92bc9aac95b63f5b" } } \ No newline at end of file