Skip to content

Commit 70eb60e

Browse files
tclemCopilot
andcommitted
Add missing model_picker fields to Rust test fixtures
The 1.0.46 update added `model_picker_category` and `model_picker_price_category` fields to the `Model` type. Update the Rust test fixtures in lib.rs and tests/e2e/client.rs to initialize these new fields so clippy passes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8ab3c26 commit 70eb60e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

rust/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,8 @@ mod tests {
24402440
},
24412441
default_reasoning_effort: None,
24422442
id: "byok-gpt-4".into(),
2443+
model_picker_category: None,
2444+
model_picker_price_category: None,
24432445
name: "BYOK GPT-4".into(),
24442446
policy: None,
24452447
supported_reasoning_efforts: Vec::new(),
@@ -2483,6 +2485,8 @@ mod tests {
24832485
},
24842486
default_reasoning_effort: None,
24852487
id: "single-flight-model".into(),
2488+
model_picker_category: None,
2489+
model_picker_price_category: None,
24862490
name: "Single Flight Model".into(),
24872491
policy: None,
24882492
supported_reasoning_efforts: Vec::new(),

rust/tests/e2e/client.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ impl ListModelsHandler for CountingModelsHandler {
269269
},
270270
default_reasoning_effort: None,
271271
id: "custom-handler-model".to_string(),
272+
model_picker_category: None,
273+
model_picker_price_category: None,
272274
name: "Custom Handler Model".to_string(),
273275
policy: None,
274276
supported_reasoning_efforts: Vec::new(),

0 commit comments

Comments
 (0)