Logging data
Web API
Connect via API.
Endpoints
POST /logs
https://app.finetunedb.com/api/v1/logs
Creates a new log.
Parameters
projectId
: stringparentId
(optional): stringname
(optional): stringprovider
: enum (openai)tags
(optional): array of stringsmodel
: stringsource
: stringmodelParameters
: objectmodel
: stringprovider
(optional): stringmax_tokens
(optional): numbertemperature
(optional): numbertop_p
(optional): numberstop_sequences
(optional): array of stringspresence_penalty
(optional): numberfrequency_penalty
(optional): numberother
(optional): record of any type
input
(optional): union of input types (Documented below)output
(optional): union of output types (Documented below)metadata
(optional): record of any typetype
: enum (CHATCOMPLETION, EMBEDDING)error
(optional): stringlatencyMs
(optional): number
Input Types
The log.input accepts different kinds of values.
OpenAI Completion (If type=CHATCOMPLETION)
Pass the messages value that you use in openai.chat.completions.create Example:
OpenAI Embedding (If type=EMBEDDING)
Pass the input value that you send to openai.embeddings.create Example:
or
Output Types
The log.output accepts different kinds of values.
OpenAI Completion (If type=CHATCOMPLETION)
Pass the response value that you get from openai.chat.completions.create as an array. Example:
OpenAI Embedding (If type=EMBEDDING) Pass the response.data value that you get from openai.embeddings.create.
Example: