mirror of
https://github.com/openai/codex.git
synced 2026-11-25 15:24:26 +00:00
Adjust modes masks (#9868)
This commit is contained in:
1 parent
dd2d68e69e
commit
cb2bbe5cba
3 files changed
+47
-7
No files matched your search
@@ -4662,8 +4662,10 @@ impl ChatWidget {
|
||||
if !config.features.enabled(Feature::CollaborationModes) {
|
||||
return None;
|
||||
}
|
||||
let kind = config.experimental_mode?;
|
||||
let mut mask = collaboration_modes::mask_for_kind(models_manager, kind)?;
|
||||
let mut mask = match config.experimental_mode {
|
||||
Some(kind) => collaboration_modes::mask_for_kind(models_manager, kind)?,
|
||||
None => collaboration_modes::default_mask(models_manager)?,
|
||||
};
|
||||
if let Some(model_override) = model_override {
|
||||
mask.model = Some(model_override.to_string());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user