diff --git a/test/api/fastapi.http b/test/api/fastapi.http new file mode 100644 index 0000000..a77bf88 --- /dev/null +++ b/test/api/fastapi.http @@ -0,0 +1,24 @@ +GET http://127.0.0.1:8000 + +HTTP/1.1 200 - OK +date: Fri, 20 Jun 2025 03:07:21 GMT +server: uvicorn +content-length: 32 +content-type: application/json +connection: close +### +POST http://127.0.0.1:8000/chat +content-type: application/json + +{ + "sessionId": "a0012", + "timeStamp": "202503310303", + "text": "可以,继续" +} + +HTTP/1.1 200 - OK +date: Fri, 20 Jun 2025 03:07:33 GMT +server: uvicorn +content-length: 220 +content-type: application/json +connection: close \ No newline at end of file diff --git a/test/api/fastgpt.http b/test/api/fastgpt.http new file mode 100644 index 0000000..5e913f6 --- /dev/null +++ b/test/api/fastgpt.http @@ -0,0 +1,26 @@ +GET http://101.89.151.141:3000 +### +POST http://101.89.151.141:3000/api/v1/chat/completions +content-type: application/json +Authorization: Bearer fastgpt-xCH4CaEoNEyVtq7fkBEI5UP3O6sABKdpGszTtSYk4R2TVW5VgrPp1YPfuLX1iH + +{ + + "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 \ No newline at end of file