v1

latestOpenAPI 3.0.02026-07-1371613.5 KB

Send a message to an AI agent or collection.

post/chat

Request body

chatIdstring

Enter null to create a new conversation or an existing chatId to continue a conversation

agentIdstring
collectionIdstring
messagestring
streamingboolean
model'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-4' | 'palm-2' | 'llama-2-13b-chat' | 'llama-2-70b-chat' | 'codellama-13b-instruct' | 'codellama-13b-python' | 'mistral-7b' | 'zephyr-7b' | 'mistrallite-7b' | 'llava-13b' | 'fuyu-8b' | 'causallm-14b'

Name of the LLM model to use.

lastUploadedFilestring

Publicly accessible URL of the last uploaded file. Typically used to feed an image to a multi-modal model.

languagestring

2-letter ISO code of the language the model should use to reply.

Response

The response to the message from the language model.

okboolean
messagestring
errorstring
sourcesstring[]
followupobject
contextobject
chatIdstring
agentIdstring
collectionIdstring