Skip to main content

checkpoint_permissions

Creates, updates, deletes, gets or lists a checkpoint_permissions resource.

Overview

Namecheckpoint_permissions
TypeResource
Idopenai.fine_tuning.checkpoint_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe permission identifier, which can be referenced in the API endpoints.
project_idstringThe project identifier that the permission is for.
created_atinteger (unixtime)The Unix timestamp (in seconds) for when the permission was created.
objectstringThe object type, which is always "checkpoint.permission". (checkpoint.permission)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfine_tuned_model_checkpointproject_id, after, limit, order, openai-organization, openai-project
createinsertfine_tuned_model_checkpoint, project_idsopenai-organization, openai-project
deletedeletefine_tuned_model_checkpoint, permission_idopenai-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_tuned_model_checkpointstringThe ID of the fine-tuned model checkpoint to delete a permission for.
permission_idstringThe ID of the fine-tuned model checkpoint permission to delete.
afterstringIdentifier for the last permission ID from the previous pagination request.
limitintegerNumber of permissions 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.
orderstringThe order in which to retrieve permissions.
project_idstringThe ID of the project to get permissions for.

SELECT examples

OK

SELECT
id,
project_id,
created_at,
object
FROM openai.fine_tuning.checkpoint_permissions
WHERE fine_tuned_model_checkpoint = '{{ fine_tuned_model_checkpoint }}' -- required
AND project_id = '{{ project_id }}'
AND after = '{{ after }}'
AND "order" = '{{ order }}'
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;

INSERT examples

No description available.

INSERT INTO openai.fine_tuning.checkpoint_permissions (
project_ids,
fine_tuned_model_checkpoint,
"openai-organization",
"openai-project"
)
SELECT
'{{ project_ids }}' /* required */,
'{{ fine_tuned_model_checkpoint }}',
'{{ openai-organization }}',
'{{ openai-project }}'
RETURNING
first_id,
last_id,
data,
has_more,
object
;

DELETE examples

No description available.

DELETE FROM openai.fine_tuning.checkpoint_permissions
WHERE fine_tuned_model_checkpoint = '{{ fine_tuned_model_checkpoint }}' --required
AND permission_id = '{{ permission_id }}' --required
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;