cURL
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>" }
Router ID
Request Data
Show child attributes
OK
Was this page helpful?