Skip to content
Tolga Kayhan edited this page Feb 16, 2023 · 1 revision

List all models

var modelList = await sdk.Models.ListModel();
Console.WriteLine(string.Join(Environment.NewLine, modelList.Models.Select(r => r.Id)));

Retrieve a Model

foreach (var modelItem in modelList.Models)
{
    var retrievedModelResponse = await sdk.Models.RetrieveModel(modelItem.Id);
    if (retrievedModelResponse.Successful)
    {
        //Congrats
    }
}
Clone this wiki locally