events
Creates, updates, deletes, gets or lists an events resource.
Overview
| Name | events |
| Type | Resource |
| Id | openai.fine_tuning.events |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The object identifier. |
created_at | integer (unixtime) | The Unix timestamp (in seconds) for when the fine-tuning job was created. |
data | string | The data associated with the event. (opaque JSON object) |
level | string | The log level of the event. (info, warn, error) |
message | string | The message of the event. |
object | string | The object type, which is always "fine_tuning.job.event". (fine_tuning.job.event) |
type | string | The type of event. (message, metrics) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | fine_tuning_job_id | after, 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.
| Name | Datatype | Description |
|---|---|---|
fine_tuning_job_id | string | The ID of the fine-tuning job to get events for. |
after | string | Identifier for the last event from the previous pagination request. |
limit | integer | Number 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-organization | string | Optionally scope the request to a specific organization (overrides the default associated with the API key). Addressable in SQL as openai_organization. |
openai-project | string | Optionally scope the request to a specific project (overrides the default associated with the API key). Addressable in SQL as openai_project. |
SELECT examples
- list
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 }}'
;