Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

test(providers): scan the whole catalog for adaptive modes in the M7 pin

Sergey Kozyrenko35c77ae5aa82
diff --git a/backend/pkg/providers/openaicompat_adaptive_test.go b/backend/pkg/providers/openaicompat_adaptive_test.go
index a5adeb1b..6b6df597 100644
--- a/backend/pkg/providers/openaicompat_adaptive_test.go
+++ b/backend/pkg/providers/openaicompat_adaptive_test.go
@@ -41,5 +41,14 @@ func TestOpenAICompatProvidersDoNotUseAdaptiveThinking(t *testing.T) {
t.Errorf("%s/%s resolves to adaptive thinking, but the openaicompat transport never emits it (M7): adaptive thinking is Anthropic/Bedrock-only", p.name, opt)
}
}
+
+ for _, m := range models {
+ if m.Reasoning == nil {
+ continue
+ }
+ if mode := m.Reasoning.Mode; mode == pconfig.ModelReasoningAdaptive || mode == pconfig.ModelReasoningAdaptiveOnly {
+ t.Errorf("%s catalog model %q declares reasoning mode %q, but the openaicompat transport never emits adaptive thinking (M7): adaptive thinking is Anthropic/Bedrock-only", p.name, m.Name, mode)
+ }
+ }
}
}