mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-30 09:48:43 +08:00 
			
		
		
		
	修改 http 请求
This commit is contained in:
		| @@ -0,0 +1,36 @@ | |||||||
|  |  | ||||||
|  | ### 登录 详细使用  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 | ||||||
|  | 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 | ||||||
|  | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  | > {% | ||||||
|  |     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 | ||||||
|  | Authorization: {{token}} | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -16,7 +16,7 @@ tenant-id: 1 | |||||||
| } | } | ||||||
|  |  | ||||||
| ### chat call | ### chat call | ||||||
| GET {{baseUrl}}/ai/chat?prompt=中国怎么样&modal=qianWen | GET {{baseUrl}}/ai/chat?modal=qianWen&conversationId=111&prompt=中国好看吗? | ||||||
| tenant-id: 1 | tenant-id: 1 | ||||||
| Authorization: {{token}} | Authorization: {{token}} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,9 @@ | |||||||
| { | { | ||||||
|  |   "global": { | ||||||
|  |     "token": "--" | ||||||
|  |   }, | ||||||
|   "dev": { |   "dev": { | ||||||
|     "baseUrl": "http://127.0.0.1:48080", |     "baseUrl": "http://127.0.0.1:48080", | ||||||
|     "token": "Bearer 7d25823e225f4e0d8f9a96b0fa608649" |     "token": "Bearer 2f807aacab534a4095cec0bac9c2af40" | ||||||
|   } |   } | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince