Class: OpenAI::Resources::FineTuning::Jobs::Checkpoints
- Inherits:
-
Object
- Object
- OpenAI::Resources::FineTuning::Jobs::Checkpoints
- Defined in:
- lib/openai/resources/fine_tuning/jobs/checkpoints.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Checkpoints
constructor
private
A new instance of Checkpoints.
-
#list(fine_tuning_job_id, after: nil, limit: nil, request_options: {}) ⇒ OpenAI::Internal::CursorPage<OpenAI::Models::FineTuning::Jobs::FineTuningJobCheckpoint>
Some parameter documentations has been truncated, see Models::FineTuning::Jobs::CheckpointListParams for more details.
Constructor Details
#initialize(client:) ⇒ Checkpoints
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Checkpoints.
41 42 43 |
# File 'lib/openai/resources/fine_tuning/jobs/checkpoints.rb', line 41 def initialize(client:) @client = client end |
Instance Method Details
#list(fine_tuning_job_id, after: nil, limit: nil, request_options: {}) ⇒ OpenAI::Internal::CursorPage<OpenAI::Models::FineTuning::Jobs::FineTuningJobCheckpoint>
Some parameter documentations has been truncated, see Models::FineTuning::Jobs::CheckpointListParams for more details.
List checkpoints for a fine-tuning job.
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/openai/resources/fine_tuning/jobs/checkpoints.rb', line 26 def list(fine_tuning_job_id, params = {}) parsed, = OpenAI::FineTuning::Jobs::CheckpointListParams.dump_request(params) @client.request( method: :get, path: ["fine_tuning/jobs/%1$s/checkpoints", fine_tuning_job_id], query: parsed, page: OpenAI::Internal::CursorPage, model: OpenAI::FineTuning::Jobs::FineTuningJobCheckpoint, options: ) end |