POST
/
api
/
v1
/
chat

Body

model
string

The model used to generate the response. One of gpt-4-0613 | gpt-3.5-turbo-16k-0613. Default is gpt-3.5-turbo-16k-0613.

messages
array
required

A list of messages

role
string
required

The role of the messages author. One of assistant or user

content
string
required

The contents of the message. content is required for all messages, and may be null for assistant messages with function calls.

files
array

A list of file URLs to ask questions. All URLs must be publicly accessible. We currently support csv, json, xlsx, txt, html, xml, parquet, dta, sas, sav.

If you want a file supporting, get in touch at sam@chatcsv.co

A list of file urls.

Example: ["https://data.set/titanic.csv"]

Response

Response will be sent as data-only server-sent events as they become available.

Example: Hey, how can I help?