pub struct TrainingOptions {
pub destination: String,
pub input: HashMap<String, String>,
pub webhook: String,
pub _webhook_events_filter: Option<WebhookEvents>,
}
Expand description
Contains all the options for creating a training.
Fields§
§destination: String
A string representing the desired model to push to in the format {destination_model_owner}/{destination_model_name}. This should be an existing model owned by the user or organization making the API request. If the destination is invalid, the server returns an appropriate 4XX response.
input: HashMap<String, String>
An object containing inputs to the Cog model’s train() function.
webhook: String
An HTTPS URL for receiving a webhook when the training completes. The webhook will be a POST request where the request body is the same as the response body of the get training operation. If there are network problems, we will retry the webhook a few times, so make sure it can be safely called more than once.
_webhook_events_filter: Option<WebhookEvents>
TO only send specifc events to the webhook, use this field. If not specified, all events will be sent. TODO : Add this to the API