fine_tuning_events_list_request {oaii}R Documentation

API fine-tuning: list events request

Description

Get status updates for a fine-tuning job. To get more details, visit https://platform.openai.com/docs/guides/fine-tuning https://platform.openai.com/docs/api-reference/fine-tuning/list-events

Usage

fine_tuning_events_list_request(
  fine_tuning_job_id,
  after = NULL,
  limit = NULL,
  api_key = api_get_key()
)

Arguments

fine_tuning_job_id

string, the ID of the fine-tuning job to get events for

after

string/NULL, identifier for the last event from the previous pagination request.

limit

integer/NULL, number of events to retrieve (defaults to 20)

api_key

string, OpenAI API key (see https://platform.openai.com/account/api-keys)

Value

content of the httr response object or SimpleError (conditions) enhanced with two additional fields: 'status_code' (response$status_code) and 'message_long' (built on response content)

Examples

## Not run: 
res_content <- fine_tuning_events_list_request("job-id")
if (!is_error(res_content)) {
  fine_tuning_events_df <- fine_tuning_fetch_events_list(res_content)
  print(fine_tuning_events_df)
}

## End(Not run)


[Package oaii version 0.5.0 Index]