Skip to content

Commit 0c92063

Browse files
Mark SetModelOptions non_exhaustive
Adding the auto_tier field made SetModelOptions source-breaking for external crates constructing it as a full struct literal. Every other options struct in this file (including CapiSessionOptions, extended the same way in #2437) already carries #[non_exhaustive], so apply the same convention here. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cf38b7b commit 0c92063

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rust/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4781,6 +4781,7 @@ impl LogOptions {
47814781
///
47824782
/// Pass `None` to `set_model` to switch model without any overrides.
47834783
#[derive(Debug, Clone, Default)]
4784+
#[non_exhaustive]
47844785
pub struct SetModelOptions {
47854786
/// Reasoning effort for the new model (e.g. `"low"`, `"medium"`,
47864787
/// `"high"`, `"xhigh"`, `"max"`).

0 commit comments

Comments
 (0)