Publish records to a data source (formerly known as “inference pipeline”).
Bearer authentication header of the form Bearer <token>, where <token> is your workspace API key. See Find your API key for more information.
The inference pipeline id (a UUID).
A list of inference data points with inputs and outputs
[
{
"user_query": "what is the meaning of life?",
"output": "42",
"tokens": 7,
"cost": 0.02,
"timestamp": 1620000000
}
]Configuration for the data stream. Depends on your Openlayer project task type.
{
"prompt": [
{
"role": "user",
"content": "{{ user_query }}"
}
],
"inputVariableNames": ["user_query"],
"outputColumnName": "output",
"timestampColumnName": "timestamp",
"costColumnName": "cost",
"numOfTokenColumnName": "tokens"
}Status OK.
true, false