v1

latestOpenAPI 3.0.3GPL-3.02026-07-177978150.2 KB
conversations

Create a conversation model

Create a Conversation Model

post/conversations/models

Request body

idstring

An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id.

model_namestring required

Name of the LLM model offered by OpenAI, Cloudflare or vLLM

api_keystring

The LLM service's API Key

history_collectionstring required

Typesense collection that stores the historical conversations

account_idstring

LLM service's account ID (only applicable for Cloudflare)

system_promptstring

The system prompt that contains special instructions to the LLM

ttlinteger

Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours)

max_bytesinteger required

The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window.

vllm_urlstring

URL of vLLM service

Response

Created Conversation Model

idstring required

An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id.

model_namestring required

Name of the LLM model offered by OpenAI, Cloudflare or vLLM

api_keystring

The LLM service's API Key

history_collectionstring required

Typesense collection that stores the historical conversations

account_idstring

LLM service's account ID (only applicable for Cloudflare)

system_promptstring

The system prompt that contains special instructions to the LLM

ttlinteger

Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours)

max_bytesinteger required

The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window.

vllm_urlstring

URL of vLLM service