mirror of
https://github.com/openai/codex.git
synced 2026-06-02 19:31:59 +00:00
fix(core) model_info preserves slug (#11602)
## Summary Preserve the specified model slug when we get a prefix-based match ## Testing - [x] added unit test --------- Co-authored-by: Ahmed Ibrahim <aibrahim@openai.com>
This commit is contained in:
@@ -141,7 +141,10 @@ impl ModelsManager {
|
||||
.find_remote_model_by_longest_prefix(model, config)
|
||||
.await;
|
||||
let model = if let Some(remote) = remote {
|
||||
remote
|
||||
ModelInfo {
|
||||
slug: model.to_string(),
|
||||
..remote
|
||||
}
|
||||
} else {
|
||||
model_info::model_info_from_slug(model)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user