mirror of
https://github.com/openai/codex.git
synced 2026-04-30 03:12:20 +03:00
profile-level model_catalog_json overrie (#12410)
enable `model-catalog_json` config value on `ConfigProfile` as well
This commit is contained in:
@@ -1908,7 +1908,12 @@ impl Config {
|
||||
let review_model = override_review_model.or(cfg.review_model);
|
||||
|
||||
let check_for_update_on_startup = cfg.check_for_update_on_startup.unwrap_or(true);
|
||||
let model_catalog = load_model_catalog(cfg.model_catalog_json.clone())?;
|
||||
let model_catalog = load_model_catalog(
|
||||
config_profile
|
||||
.model_catalog_json
|
||||
.clone()
|
||||
.or(cfg.model_catalog_json.clone()),
|
||||
)?;
|
||||
|
||||
let log_dir = cfg
|
||||
.log_dir
|
||||
|
||||
Reference in New Issue
Block a user