fix(provider_registry): case-insensitive model name lookup for context_limit (#8906)
Signed-off-by: Bright Zheng <bzqzheng@gmail.com> Signed-off-by: Douwe Osinga <douwe@squareup.com> Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -60,7 +60,7 @@ impl ProviderEntry {
|
|||||||
.metadata
|
.metadata
|
||||||
.known_models
|
.known_models
|
||||||
.iter()
|
.iter()
|
||||||
.find(|m| m.name == model.model_name && m.context_limit > 0)
|
.find(|m| m.name.eq_ignore_ascii_case(&model.model_name) && m.context_limit > 0)
|
||||||
{
|
{
|
||||||
model.context_limit = Some(info.context_limit);
|
model.context_limit = Some(info.context_limit);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user