20 lines
570 B
Rust
20 lines
570 B
Rust
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)]
|
|
pub struct AiModelVersion {
|
|
pub id: Uuid,
|
|
pub ai_model_id: Uuid,
|
|
pub version: String,
|
|
pub provider_model_id: String,
|
|
pub context_window: Option<i32>,
|
|
pub max_output_tokens: Option<i32>,
|
|
pub changelog: Option<String>,
|
|
pub stable: bool,
|
|
pub deprecated: bool,
|
|
pub released_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|