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:
Bright Zheng
2026-05-12 14:50:45 -04:00
committed by GitHub
parent 2c8d7f13bf
commit 208fea5301
@@ -60,7 +60,7 @@ impl ProviderEntry {
.metadata
.known_models
.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);
}