Files
ZNJJ-api-server/test/api/fastgpt.http
2026-07-27 17:21:29 +08:00

30 lines
597 B
HTTP

@fastgptBaseUrl = http://127.0.0.1:3000
@fastgptApiKey = replace-with-local-api-key
GET {{fastgptBaseUrl}}
###
POST {{fastgptBaseUrl}}/api/v1/chat/completions
content-type: application/json
Authorization: Bearer {{fastgptApiKey}}
{
"chatId": "a0002",
"stream": false,
"detail": false,
"messages": [
{
"content": "",
"role": "user"
}
]
}
HTTP/1.1 200 - OK
vary: Origin, Accept-Encoding
content-type: application/json; charset=utf-8
etag: "s14v22uu1g5f"
content-length: 219
date: Fri, 20 Jun 2025 02:37:16 GMT
connection: close