Add client-mode FastGPT routing
This commit is contained in:
85
test/api/fastapi-browser-addon.http
Normal file
85
test/api/fastapi-browser-addon.http
Normal file
@@ -0,0 +1,85 @@
|
||||
@baseUrl = http://127.0.0.1:8000
|
||||
###
|
||||
@sessionId = a1123
|
||||
@timeStamp = 202603310303
|
||||
@clientMode = browser_addon
|
||||
###
|
||||
GET {{baseUrl}}
|
||||
|
||||
HTTP/1.1 200 - OK
|
||||
date: Tue, 28 Jul 2026 00:36:56 GMT
|
||||
server: uvicorn
|
||||
content-length: 32
|
||||
content-type: application/json
|
||||
connection: close
|
||||
###
|
||||
DELETE {{baseUrl}}/delete_session
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"sessionId": "{{sessionId}}",
|
||||
"timeStamp": "{{$timestamp}}",
|
||||
"clientMode": "{{clientMode}}"
|
||||
}
|
||||
|
||||
HTTP/1.1 200 - OK
|
||||
date: Tue, 28 Jul 2026 00:36:57 GMT
|
||||
server: uvicorn
|
||||
content-length: 71
|
||||
content-type: application/json
|
||||
connection: close
|
||||
###
|
||||
POST {{baseUrl}}/chat?stream=true
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"sessionId": "{{sessionId}}",
|
||||
"timeStamp": "{{timeStamp}}",
|
||||
"text": "hi",
|
||||
"clientMode": "{{clientMode}}",
|
||||
"needFormUpdate": true,
|
||||
"useTextChunk": true
|
||||
}
|
||||
|
||||
HTTP/1.1 200 - OK
|
||||
date: Tue, 28 Jul 2026 00:36:58 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",
|
||||
"clientMode": "{{clientMode}}"
|
||||
}
|
||||
|
||||
HTTP/1.1 200 - OK
|
||||
date: Tue, 28 Jul 2026 00:37:07 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",
|
||||
"clientMode": "{{clientMode}}"
|
||||
}
|
||||
|
||||
HTTP/1.1 200 - OK
|
||||
date: Tue, 28 Jul 2026 00:37:00 GMT
|
||||
server: uvicorn
|
||||
content-length: 70
|
||||
content-type: application/json
|
||||
connection: close
|
||||
###
|
||||
Reference in New Issue
Block a user