Start a new chat session with the given parameters.
companyModelId | integer The ID of the company model. |
appId | integer The application ID. |
prompt | string The prompt for the chat session. |
history | Array of strings Chat history. |
{- "companyModelId": 123456789,
- "appId": 123456789,
- "prompt": "Can you help me with my request?",
- "history": [
- "Message 1",
- "Message 2"
]
}
{- "success": true,
- "message": "output of chat"
}
Start a new chat session using an avatar with the given parameters.
companyAvatarId | integer The ID of the company avatar. |
prompt | string The prompt for the chat session. |
history | Array of strings Chat history. |
{- "companyAvatarId": 123456789,
- "prompt": "What can this avatar do?",
- "history": [
- "Avatar history 1",
- "Avatar history 2"
]
}
{- "success": true,
- "message": "output of chat with avatar"
}
Start a general chat session with the given parameters.
prompt | string The prompt for the chat session. |
history | Array of strings Chat history. |
{- "prompt": "General chat session request",
- "history": [
- "General history 1",
- "General history 2"
]
}
{- "success": true,
- "message": "output of chat with general"
}
Retrieve a list of apps associated with the company.
{- "apps": [
- {
- "id": 123456789,
- "appId": 123456789,
- "companyId": 123456789,
- "app": {
- "name": "App"
}
}, - {
- "id": 123456789,
- "appId": 123456789,
- "companyId": 123456789,
- "app": {
- "name": "App"
}
}
]
}
Retrieve a list of models associated with the company.
{- "models": [
- {
- "id": 123456789,
- "companyId": 123456789,
- "model": {
- "id": 123456789,
- "name": "Model One"
}
}, - {
- "id": 123456789,
- "companyId": 123456789,
- "model": {
- "id": 123456789,
- "name": "Model Two"
}
}
]
}