Skip to content

ModelsResource

Namespace: TypeSafe.AI.Sdk

public sealed class ModelsResource

Access to the Models API resource.

Inheritance: object

View source

ListAsync(RequestOptions?, CancellationToken)

Section titled “ListAsync(RequestOptions?, CancellationToken)”
public Task<IReadOnlyList<ModelCard>> ListAsync(RequestOptions? options = null, CancellationToken cancellationToken = default)

List the models available to the account.

Parameters

Name Type Description
options RequestOptions
cancellationToken CancellationToken

Returns: Task<IReadOnlyList<ModelCard>>

View source

ListWithResponseAsync(RequestOptions?, CancellationToken)

Section titled “ListWithResponseAsync(RequestOptions?, CancellationToken)”
public Task<TypeSafeResponse<IReadOnlyList<ModelCard>>> ListWithResponseAsync(RequestOptions? options = null, CancellationToken cancellationToken = default)

List models and return the HTTP response metadata.

Parameters

Name Type Description
options RequestOptions
cancellationToken CancellationToken

Returns: Task<TypeSafeResponse<IReadOnlyList<ModelCard>>>

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API