The address of BASE_URL :
- In California: https://cara.zeabur.app
- In Shanghai: https://tanninrachel.ren
- function: get the audio_steam data
- method: POST
- data: the data of audio steam
- function: regiseter a user
- method: POST
- data:
{ "email": "your email address", "username": "your user name", "password": "your password", "avatar_url": "your avatar url" }
- function: user login
- method: POST
- data:
{ "username": "your user name", "password": "your password" }
- function: user logout
- method: POST
- data: none
@login_required
- function: send a message
- method: POST
- data:
{ "content": "the content you want to send" }
@login_required
- function: get all messages
- method: GET
- data: none
@login_required
- function: get all users if you are an admin
- method: GET
- data: none
Maybe only in China this method is active!
-
function: upload an image to TencentCloud COS Bucket
-
method: POST
-
data:
image: the image you want to upload
- function: give Cara an image and then Cara will understand the image and then add to its konwledge base
- method: POST
- data:
{ "url": "your image url" }
- function: get the knowledge base
- method: GET
- data: none
- function: answer user's question based on Cara's knowledge base
- method: POST
- data:
{ "question": "your question" }
- function: delete add messages
- method: GET
- data: none