Skip to main content

events

Creates, updates, deletes, gets or lists an events resource.

Overview

Nameevents
TypeResource
Idopenai.fine_tuning.events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe object identifier.
created_atinteger (unixtime)The Unix timestamp (in seconds) for when the fine-tuning job was created.
datastringThe data associated with the event. (opaque JSON object)
levelstringThe log level of the event. (info, warn, error)
messagestringThe message of the event.
objectstringThe object type, which is always "fine_tuning.job.event". (fine_tuning.job.event)
typestringThe type of event. (message, metrics)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfine_tuning_job_idafter, limit, openai-organization, openai-project

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
fine_tuning_job_idstringThe ID of the fine-tuning job to get events for.
afterstringIdentifier for the last event from the previous pagination request.
limitintegerNumber of events to retrieve. Automatically applied from a SQL LIMIT clause - SELECT ... LIMIT 10 sends limit=10 on the wire. Setting it explicitly in a WHERE clause is not required.
openai-organizationstringOptionally scope the request to a specific organization (overrides the default associated with the API key). Addressable in SQL as openai_organization.
openai-projectstringOptionally scope the request to a specific project (overrides the default associated with the API key). Addressable in SQL as openai_project.

SELECT examples

OK

SELECT
id,
created_at,
data,
level,
message,
object,
type
FROM openai.fine_tuning.events
WHERE fine_tuning_job_id = '{{ fine_tuning_job_id }}' -- required
AND after = '{{ after }}'
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;