Skip to content

Commit d73c6fc

Browse files
committed
Allow no provider definition in validation
1 parent 239d66f commit d73c6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/toolprovider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ToolSyntaxPatternLatest = `(.*):latest$`
2525
const ToolSyntaxPatternInstalled = `(.*):installed$`
2626

2727
func isProviderSupported(providerName string) bool {
28-
return providerName != "" && slices.Contains(ToolProviders, providerName)
28+
return slices.Contains(ToolProviders, providerName) || providerName == "" // Provider is optional, there is a default provider.
2929
}
3030

3131
func validateToolConfig(toolConfig *ToolConfigModel) error {

0 commit comments

Comments
 (0)