POST api/KDCAServices/GPTChatCompletionTest

Request Information

URI Parameters

None.

Body Parameters

GPTChatRequest
NameDescriptionTypeAdditional information
model

string

None.

messages

Collection of GPTChatRequestMessage

None.

user

string

None.

Request Formats

application/json, text/json

Sample:
{
  "model": "sample string 1",
  "messages": [
    {
      "role": "sample string 1",
      "content": "sample string 2"
    },
    {
      "role": "sample string 1",
      "content": "sample string 2"
    }
  ],
  "user": "sample string 2"
}

application/xml, text/xml

Sample:
<GPTChatRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KDCA.Model">
  <messages>
    <GPTChatRequestMessage>
      <content>sample string 2</content>
      <role>sample string 1</role>
    </GPTChatRequestMessage>
    <GPTChatRequestMessage>
      <content>sample string 2</content>
      <role>sample string 1</role>
    </GPTChatRequestMessage>
  </messages>
  <model>sample string 1</model>
  <user>sample string 2</user>
</GPTChatRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.