Create a model response
Create a model response for the given chat conversation.
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 'http://localhost:5622/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"}'
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
}