API Documentation
Language chat
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 ID
Body
application/json
Request Data
The body is of type object
.
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
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>"
}