- Replaced hardcoded URLs with a base URL variable for better configurability. - Updated request payloads to use sessionId and timeStamp variables. - Enhanced the chat request with new parameters: needFormUpdate and useTextChunk. - Adjusted response content types and lengths for consistency. - Updated timestamps in response headers for accuracy.
72 lines
1.4 KiB
HTTP
72 lines
1.4 KiB
HTTP
@baseUrl = http://101.89.108.122:8000
|
|
@sessionId = a1103
|
|
@timeStamp = 202603310303
|
|
###
|
|
|
|
GET {{baseUrl}}
|
|
|
|
HTTP/1.1 200 - OK
|
|
date: Thu, 18 Jun 2026 02:37:30 GMT
|
|
server: uvicorn
|
|
content-length: 32
|
|
content-type: application/json
|
|
connection: close
|
|
###
|
|
POST {{baseUrl}}/chat?stream=true
|
|
content-type: application/json
|
|
|
|
{
|
|
"sessionId": "{{sessionId}}",
|
|
"timeStamp": "{{timeStamp}}",
|
|
"text": "两车追尾",
|
|
"needFormUpdate": true,
|
|
"useTextChunk": true
|
|
}
|
|
|
|
HTTP/1.1 200 - OK
|
|
date: Thu, 18 Jun 2026 02:40:12 GMT
|
|
server: uvicorn
|
|
content-type: text/event-stream; charset=utf-8
|
|
connection: close
|
|
transfer-encoding: chunked
|
|
###
|
|
POST {{baseUrl}}/get_info
|
|
content-type: application/json
|
|
|
|
{
|
|
"sessionId": "{{sessionId}}",
|
|
"timeStamp": "{{timeStamp}}",
|
|
"key": "hphm1"
|
|
}
|
|
|
|
HTTP/1.1 200 - OK
|
|
date: Thu, 18 Jun 2026 02:41:06 GMT
|
|
server: uvicorn
|
|
content-length: 97
|
|
content-type: application/json
|
|
connection: close
|
|
###
|
|
POST {{baseUrl}}/set_info
|
|
content-type: application/json
|
|
|
|
{
|
|
"sessionId": "{{sessionId}}",
|
|
"timeStamp": "{{timeStamp}}",
|
|
"key": "hphm1",
|
|
"value": "沪A8939"
|
|
}
|
|
###
|
|
DELETE {{baseUrl}}/delete_session
|
|
content-type: application/json
|
|
|
|
{
|
|
"sessionId": "{{sessionId}}",
|
|
"timeStamp": "{{$timestamp}}"
|
|
}
|
|
|
|
HTTP/1.1 200 - OK
|
|
date: Thu, 18 Jun 2026 02:37:48 GMT
|
|
server: uvicorn
|
|
content-length: 71
|
|
content-type: application/json
|
|
connection: close |