Create a model response
Create a model response for the given chat conversation.
Query parameters
-
content_references_disabled
boolean If true, the response will not include content references.
Default value is
false
.
Body
Required
-
connectorId
string Required -
conversationId
string(nonempty) A string that does not contain only whitespace characters
Minimum length is
1
. -
isStream
boolean -
langSmithApiKey
string -
langSmithProject
string -
messages
array[object] Required AI assistant message.
-
model
string -
persist
boolean Required -
promptId
string -
responseLanguage
string
POST
/api/security_ai_assistant/chat/complete
curl \
--request POST 'https://localhost:5601/api/security_ai_assistant/chat/complete' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"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"}'