Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 1.27 KB

README.md

File metadata and controls

79 lines (55 loc) · 1.27 KB

API Interface

  • base url:

    https://moveflow-ai-api-backend.vercel.app/

    or

    https://chat-api.moveflow.xyz

Request Sarah@StreamingAI Chat Botxhjb

Request

  • Method: POST
  • URL:
    • : https://moveflow-ai-api-backend.vercel.app/api/sarah
  • Params account: string, default: '0x' msg: string, default: 'hello'
{
    "account": "0x1234",                       
    "msg": "hello "
}

Response:

{
    "code": 200,                        // status code,  200 is success,or other code is failed
    "msg": "hello , I'm Sarah ... "
}

Request Jimmy@Finance Chat Bot

Request

  • Method: POST
  • URL:
    • : https://moveflow-ai-api-backend.vercel.app/api/jimmy
  • Params account: string, default: '0x' msg: string, default: 'hello'

ex:

{
    "account": "0x1234",                       
    "msg": "hello "
}

Response:

{
    "code": 200,                        // status code,  200 is success,or other code is failed
    "msg": "hello , I'm jimmy ... "
}

ex:

```js
let res = await fetch("http://localhost:3000/api/chat/sarah", {
    "body": "{\"account\":\"0x\",\"msg\":\"hello\"}",
    "method": "POST",
});
```