Skip to content

Move-Flow/moveflow-chat-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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",
});
```