Chat Completions | Activeloop

Chat Completions

Create a chat completion with OpenAI-compatible format

AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

workspacestringOptionalDefault: default
modelstringOptionalDefault: activeloop-l0
temperatureany ofOptionalDefault: 1
top_pany ofOptionalDefault: 1
nany ofOptionalDefault: 1
streamany ofOptionalDefault: false
max_completion_tokensany ofOptional
presence_penaltyany ofOptionalDefault: 0
frequency_penaltyany ofOptionalDefault: 0
logprobsany ofOptionalDefault: false
top_logprobsany ofOptional
response_formatany ofOptional
stream_optionsany ofOptional
storeany ofOptionalDefault: false
service_tierany ofOptional
reasoning_effortany ofOptional
string · enumOptionalPossible values:
or

Get Chat Completion Messages

/chat/completions/{completion_id}/messages

Get messages for a chat completion

AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

completion_idstringRequired

The ID of the chat completion

workspacestringOptional

The ID of workspace to lookup chat completion messages in

Default: default
afterany ofOptional

Identifier for the last message from the previous pagination request

limitinteger · min: 1 · max: 100Optional

Number of messages to retrieve

Default: 20
orderstringOptional

Sort order for messages by timestamp

Default: asc
objectstringOptionalDefault: list
has_morebooleanOptionalDefault: false
/chat/completions/{completion_id}/messages

List stored Chat Completions

AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

workspacestringOptional

The ID of workspace to lookup chat completions in

Default: default
afterany ofOptional

Identifier for the last chat completion from the previous pagination request

limitinteger · min: 1 · max: 100Optional

Number of Chat Completions to retrieve

Default: 20
orderstring · enumOptional

Sort order for Chat Completions by timestamp

Default: ascPossible values:
objectstringOptionalDefault: list
has_morebooleanOptionalDefault: false

/chat/completions/{completion_id}

Get a stored chat completion

AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

completion_idstringRequired

The ID of the chat completion to retrieve

workspacestringOptional

The ID of workspace to lookup chat completion in

Default: default
objectstringOptionalDefault: chat.completion
system_fingerprintany ofOptional
perception_usageany ofOptional
service_tierany ofOptional
temperatureany ofOptional
presence_penaltyany ofOptional
frequency_penaltyany ofOptional
response_formatany ofOptional
/chat/completions/{completion_id}

/chat/completions/{completion_id}

Update metadata for a chat completion

AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

completion_idstringRequired

The ID of the chat completion to update

workspacestringOptional

The ID of workspace to update chat completion in

Default: default
Other propertiesstringOptional
objectstringOptionalDefault: chat.completion
system_fingerprintany ofOptional
perception_usageany ofOptional
service_tierany ofOptional
temperatureany ofOptional
presence_penaltyany ofOptional
frequency_penaltyany ofOptional
response_formatany ofOptional
/chat/completions/{completion_id}

Get Chat Completion Messages

/chat/completions/{completion_id}/messages

Get messages for a chat completion

AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

completion_idstringRequired

The ID of the chat completion

workspacestringOptional

The ID of workspace to lookup chat completion messages in

Default: default
afterany ofOptional

Identifier for the last message from the previous pagination request

limitinteger · min: 1 · max: 100Optional

Number of messages to retrieve

Default: 20
orderstringOptional

Sort order for messages by timestamp

Default: asc
objectstringOptionalDefault: list
has_morebooleanOptionalDefault: false
/chat/completions/{completion_id}/messages

/chat/completions/{completion_id}
AuthorizationstringRequired

Enter your bearer token in the format 'your-token' (without quotes or 'Bearer' prefix)

completion_idstringRequired

The ID of the chat completion to delete

workspacestringOptional

The ID of workspace to delete chat completion in

Default: default
objectstringOptionalDefault: chat.completion.deleted
deletedbooleanOptionalDefault: true
/chat/completions/{completion_id}

Last updated