Chat

Chat Submit

Chat with Virtual Patient

POST http://dev-api.med2lab.com/external/v1/case/chat/submit/

Request Body

Name
Type
Description

case_id*

id

The id of the case

message*

string

Your message.

model*

string

"gpt-3.5-turbo", "gpt-4"... from OpenAI

```json
{
    "status": "response_saved",
    "UserMessage": "how are you",
    "PatientResponse": "Hello, doctor. I'm feeling concerned about my symptoms. Can you please explain what might be causing the numbness and tingling in my feet? Could it be related to my diabetes?",
    "Media": null,
    "ChatStatus": "patient",
    "PreceptorQuestion": null
}
```
curl --location 'https://api-qa.med2lab.com/external/v1/case/chat/submit/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer H8AqjUwVTbRylxkQFtDSz4eWptLS8L' \
--data '{
    "case_id": 778,
    "message": "how are you",
    "model": "gpt-3.5-turbo"
}'

Chat Reset

Reset your chat in that case.

POST http://dev-api.med2lab.com/external/v1/case/chat/reset/

Request Body

Name
Type
Description

case_id*

id

The id of the case

```json
{
    "status": "success"
}
```
curl --location 'http://api-qa.med2lab.com/external/v1/case/chat/reset/' \
--header 'Authorization: Bearer H8AqjUwVTbRylxkQFtDSz4eWptLS8L' \
--header 'Content-Type: application/json' \
--data '{
    "case_id": 778
}'

Last updated