Create Experiment Stream

POST

Response

This endpoint returns a stream of object.
datalist of objects

Array containing the generation responses.

provider_responseslist of any

The raw responses returned by the model provider.

project_idstringOptional

Unique identifier of the parent project. Will not be provided if the request was made without providing a project name or id

num_samplesintegerOptionalDefaults to 1

How many completions to make for each set of inputs.

logprobsintegerOptional

Include the log probabilities of the top n tokens in the provider_response

suffixstringOptional

The suffix that comes after a completion of inserted text. Useful for completions that act like inserts.

userstringOptional

End-user ID passed through to provider call.

usageobjectOptional

Counts of the number of tokens used and related stats.

metadatamap from strings to anyOptional

Any additional metadata to record.

provider_requestmap from strings to anyOptional

The raw request sent to the model provider.

session_idstringOptional

ID of the session if it belongs to one.