POST
/
v1
/
language
/
{router}
/
chat
curl --request POST \
  --url http://localhost:9099/v1/language/{router}/chat \
  --header 'Content-Type: application/json' \
  --data '{
  "message": {
    "content": "<string>",
    "name": "<string>",
    "role": "<string>"
  },
  "messageHistory": [
    {
      "content": "<string>",
      "name": "<string>",
      "role": "<string>"
    }
  ],
  "override": {
    "message": {
      "content": "<string>",
      "name": "<string>",
      "role": "<string>"
    },
    "model_id": "<string>"
  }
}'
{
  "cached": true,
  "created": 123,
  "id": "<string>",
  "model": "<string>",
  "model_id": "<string>",
  "modelResponse": {
    "message": {
      "content": "<string>",
      "name": "<string>",
      "role": "<string>"
    },
    "responseId": {},
    "tokenCount": {
      "promptTokens": 123,
      "responseTokens": 123,
      "totalTokens": 123
    }
  },
  "provider": "<string>",
  "router": "<string>"
}

Path Parameters

router
string
required

Router ID

Body

application/json
Request Data
message
object
messageHistory
object[]
override
object

Response

200
application/json
OK
cached
boolean
created
integer
id
string
model
string
model_id
string
modelResponse
object
provider
string
router
string