Create a model response Beta
Create a model response for the given chat conversation.
Body Required
-
conversationId string
-
isStream boolean
-
langSmithApiKey string
-
langSmithProject string
-
model string
-
promptId string
-
responseLanguage string
POST /api/security_ai_assistant/chat/complete
curl \
-X POST https://localhost:5601/api/security_ai_assistant/chat/complete \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"connectorId": "string",
"conversationId": "string",
"isStream": true,
"langSmithApiKey": "string",
"langSmithProject": "string",
"messages": [
{
"content": "string",
"data": {},
"fields_to_anonymize": [
"string"
],
"role": "system"
}
],
"model": "string",
"persist": true,
"promptId": "string",
"responseLanguage": "string"
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}