Generates a completion based on the input messages and retrieval chunks. If the ‘stream’ parameter is set to true, the response is returned as a stream of plain text (text/plain).
API key for authentication
The messages to generate completion for
Whether to stream the response. If true, the response is sent as a stream using the 'text/plain' content type.
Whether to include citations in the response
target tag names to be obtained
target tag IDs to be obtained
The type of the source
crawl, local_file, google_drive, github, notion The type of the source file
html, pdf, ppt, pptx, pptm, doc, docx, docm, xls, xlsx, xlsm, md, txt, notion_page Start date for content search (Unix timestamp in seconds)
x >= 1735639200End date for content search (Unix timestamp in seconds)
x >= 1735639200Array of domains to search within (supports partial matching)
Successful completion. If the 'stream' parameter is false, the response is returned as application/json. If the 'stream' parameter is true, the response is returned as a stream of plain text (text/plain), where each chunk is a plain text line containing a JSON object.