jev_sdk/models.rs
1//! Types for the Models API.
2
3use serde::{Deserialize, Serialize};
4
5/// A model available to the account.
6#[derive(Debug, Clone, Deserialize, Serialize)]
7pub struct ModelCard {
8 /// The model name to pass as `model` in requests (e.g. `jev-latest`).
9 pub name: String,
10 /// A human-readable description of the model.
11 pub description: String,
12 /// RFC 3339 / ISO 8601 release timestamp.
13 pub release_date: String,
14}
15
16/// The response to `list_models`.
17#[derive(Debug, Clone, Deserialize, Serialize)]
18pub struct ListModelsResponse {
19 /// Every model available to the account.
20 pub models: Vec<ModelCard>,
21}