Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(anthropic): remove redundant unsupported-model check

Steven Enamakel4d817b66c9ea
diff --git a/src/openhuman/inference/provider/crate_anthropic.rs b/src/openhuman/inference/provider/crate_anthropic.rs
index 7008f74bf6..3d9db52b48 100644
--- a/src/openhuman/inference/provider/crate_anthropic.rs
+++ b/src/openhuman/inference/provider/crate_anthropic.rs
@@ -123,16 +123,12 @@ pub(crate) fn build_crate_anthropic_model(
config.model,
config.temperature_override
);
- let model_matches_unsupported_pattern = config
- .temperature_unsupported_models
- .iter()
- .any(|pattern| crate::openhuman::inference::temperature::glob_match(pattern, config.model));
// If there are unsupported-model patterns, defer the override to the
// wrapper below. AnthropicModel applies its fixed override after the
// request is prepared and therefore cannot honour a per-request model's
// suppression decision.
let adapter_temperature_override =
- if config.temperature_unsupported_models.is_empty() || model_matches_unsupported_pattern {
+ if config.temperature_unsupported_models.is_empty() {
config.temperature_override
} else {
None