POST api/Values

Request Information

URI Parameters

None.

Body Parameters

postJsonBody
NameDescriptionTypeAdditional information
prompt

string

None.

conversationContexList

Collection of Message

None.

Request Formats

application/json, text/json

Sample:
{
  "prompt": "sample string 1",
  "conversationContexList": [
    {
      "role": "sample string 1",
      "content": "sample string 2"
    },
    {
      "role": "sample string 1",
      "content": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ValuesController.postJsonBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/entity_api.liquidthread.pl.Controllers">
  <conversationContexList>
    <ValuesController.Message>
      <content>sample string 2</content>
      <role>sample string 1</role>
    </ValuesController.Message>
    <ValuesController.Message>
      <content>sample string 2</content>
      <role>sample string 1</role>
    </ValuesController.Message>
  </conversationContexList>
  <prompt>sample string 1</prompt>
</ValuesController.postJsonBody>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>