23 lines
654 B
Rust
23 lines
654 B
Rust
use crate::ModelVersionId;
|
|
use sea_orm::entity::prelude::*;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
|
|
#[sea_orm(table_name = "ai_model_parameter_profile")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key)]
|
|
pub id: i64,
|
|
pub model_version_id: ModelVersionId,
|
|
pub temperature_min: f64,
|
|
pub temperature_max: f64,
|
|
pub top_p_min: f64,
|
|
pub top_p_max: f64,
|
|
pub frequency_penalty_supported: bool,
|
|
pub presence_penalty_supported: bool,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
pub enum Relation {}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|