POST mobile/aichat/chat

load screen view

Request Information

Parameters

NameDescriptionAdditional information
viewInVO

Define this parameter in the request body.

Request body 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"
    },
    {
      "role": "sample string 1",
      "content": "sample string 2"
    }
  ],
  "temperature": 1.1,
  "max_tokens": 1,
  "response_format": "sample string 2"
}

application/xml, text/xml

Sample:
<ChatGpt3ChatAIRequestVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AiChinese.Internal.API.VO.Common.Units.Data">
  <Type>ChatGPT3Chat</Type>
  <UseProxy>true</UseProxy>
  <ChatMessages>
    <ChatGpt3ChatMessage>
      <Content>sample string 2</Content>
      <Role>sample string 1</Role>
    </ChatGpt3ChatMessage>
    <ChatGpt3ChatMessage>
      <Content>sample string 2</Content>
      <Role>sample string 1</Role>
    </ChatGpt3ChatMessage>
    <ChatGpt3ChatMessage>
      <Content>sample string 2</Content>
      <Role>sample string 1</Role>
    </ChatGpt3ChatMessage>
  </ChatMessages>
  <MaxTokens>1</MaxTokens>
  <Model>sample string 1</Model>
  <ResponseFormat>sample string 2</ResponseFormat>
  <Temperature>1.1</Temperature>
</ChatGpt3ChatAIRequestVO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "isDone": true,
  "code": 0,
  "message": "sample string 2",
  "cachedKey": "sample string 3",
  "correlationId": "a6e0778e-cf70-4bbc-9285-9a85e82ec4f5",
  "data": null
}

application/xml, text/xml

Sample:
<ApiResponseOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AiChinese.Internal.API">
  <CachedKey>sample string 3</CachedKey>
  <Code>None</Code>
  <CorrelationId>a6e0778e-cf70-4bbc-9285-9a85e82ec4f5</CorrelationId>
  <IsDone>true</IsDone>
  <Message>sample string 2</Message>
</ApiResponseOfanyType>