Skip to main content

Module models

Module models 

Source
Expand description

The models endpoint.

Listing the models is also how a client checks that its API key works and opens its connection before the first real call: the request carries no body, so a key that is rejected is rejected cheaply.

Models is the resource, reached through Client::models; a model card carries three strings, and members the API adds later are ignored by the decoder and stay readable in the raw body.

Structsยง

ListModels
A request for the model list, ready to be configured and sent.
ListModelsResponse
The models available to the account, with the HTTP response they came in.
ModelMetadata
One model the account can use.
Models
The models endpoint of a client, from Client::models.