Hierarchy

  • APIResource
    • Permissions

Constructors

Methods

Constructors

  • Parameters

    Returns Permissions

Methods

  • NOTE: Calling this endpoint requires an admin API key.

    This enables organization owners to share fine-tuned models with other projects in their organization.

    Parameters

    Returns PagePromise<PermissionCreateResponsesPage, PermissionCreateResponse>

    // Automatically fetches more pages as needed.
    for await (const permissionCreateResponse of client.fineTuning.checkpoints.permissions.create(
    'ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd',
    { project_ids: ['string'] },
    )) {
    // ...
    }
  • NOTE: This endpoint requires an admin API key.

    Organization owners can use this endpoint to delete a permission for a fine-tuned model checkpoint.

    Parameters

    Returns APIPromise<PermissionDeleteResponse>

    const permission =
    await client.fineTuning.checkpoints.permissions.delete(
    'cp_zc4Q7MP6XxulcVzj4MZdwsAB',
    {
    fine_tuned_model_checkpoint:
    'ft:gpt-4o-mini-2024-07-18:org:weather:B7R9VjQd',
    },
    );
  • NOTE: This endpoint requires an admin API key.

    Organization owners can use this endpoint to view all permissions for a fine-tuned model checkpoint.

    Parameters

    Returns APIPromise<PermissionRetrieveResponse>

    const permission =
    await client.fineTuning.checkpoints.permissions.retrieve(
    'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
    );