1// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
3package openai
4
5import (
6 "github.com/openai/openai-go/option"
7)
8
9// FineTuningCheckpointService contains methods and other services that help with
10// interacting with the openai API.
11//
12// Note, unlike clients, this service does not read variables from the environment
13// automatically. You should not instantiate this service directly, and instead use
14// the [NewFineTuningCheckpointService] method instead.
15type FineTuningCheckpointService struct {
16 Options []option.RequestOption
17 Permissions FineTuningCheckpointPermissionService
18}
19
20// NewFineTuningCheckpointService generates a new service that applies the given
21// options to each request. These options are applied after the parent client's
22// options (if there is one), and before any request-specific options.
23func NewFineTuningCheckpointService(opts ...option.RequestOption) (r FineTuningCheckpointService) {
24 r = FineTuningCheckpointService{}
25 r.Options = opts
26 r.Permissions = NewFineTuningCheckpointPermissionService(opts...)
27 return
28}