Remove availability NUX ids

This commit is contained in:
Ahmed Ibrahim
2026-02-26 19:08:18 -08:00
parent 09c3663773
commit 0a1346175b
5 changed files with 1 additions and 14 deletions

View File

@@ -10307,15 +10307,11 @@
},
"ModelAvailabilityNux": {
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"id",
"message"
],
"type": "object"

View File

@@ -104,15 +104,11 @@
},
"ModelAvailabilityNux": {
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"id",
"message"
],
"type": "object"

View File

@@ -2,4 +2,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ModelAvailabilityNux = { id: string, message: string, };
export type ModelAvailabilityNux = { message: string, };

View File

@@ -1394,14 +1394,12 @@ pub struct ModelListParams {
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct ModelAvailabilityNux {
pub id: String,
pub message: String,
}
impl From<CoreModelAvailabilityNux> for ModelAvailabilityNux {
fn from(value: CoreModelAvailabilityNux) -> Self {
Self {
id: value.id,
message: value.message,
}
}

View File

@@ -101,7 +101,6 @@ pub struct ModelUpgrade {
#[derive(Debug, Clone, Deserialize, Serialize, TS, JsonSchema, PartialEq, Eq)]
pub struct ModelAvailabilityNux {
pub id: String,
pub message: String,
}
@@ -720,7 +719,6 @@ mod tests {
fn model_preset_preserves_availability_nux() {
let preset = ModelPreset::from(ModelInfo {
availability_nux: Some(ModelAvailabilityNux {
id: "try_spark".to_string(),
message: "Try Spark.".to_string(),
}),
..test_model(None)
@@ -729,7 +727,6 @@ mod tests {
assert_eq!(
preset.availability_nux,
Some(ModelAvailabilityNux {
id: "try_spark".to_string(),
message: "Try Spark.".to_string(),
})
);