mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
Remove availability NUX ids
This commit is contained in:
@@ -10307,15 +10307,11 @@
|
||||
},
|
||||
"ModelAvailabilityNux": {
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"message"
|
||||
],
|
||||
"type": "object"
|
||||
|
||||
@@ -104,15 +104,11 @@
|
||||
},
|
||||
"ModelAvailabilityNux": {
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"message"
|
||||
],
|
||||
"type": "object"
|
||||
|
||||
@@ -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, };
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user