mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-19 16:17:56 +00:00
test(channel-monitor): adapt checker body test to 3-arg normalizeMonitorPrimaryModel
This commit is contained in:
@@ -199,7 +199,7 @@ func TestGrokMonitorConfiguration(t *testing.T) {
|
||||
if err := validateProvider(MonitorProviderGrok); err != nil {
|
||||
t.Fatalf("grok provider should be supported: %v", err)
|
||||
}
|
||||
if got := normalizeMonitorPrimaryModel(MonitorProviderGrok, ""); got != MonitorDefaultGrokModel {
|
||||
if got := normalizeMonitorPrimaryModel(MonitorProviderGrok, MonitorCheckModeProbe, ""); got != MonitorDefaultGrokModel {
|
||||
t.Fatalf("expected default Grok model %q, got %q", MonitorDefaultGrokModel, got)
|
||||
}
|
||||
if err := validateAPIMode(MonitorProviderGrok, MonitorAPIModeChatCompletions); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user