Skip to content

Commit b58e8f7

Browse files
Anaetheliongithub-actions[bot]
authored andcommitted
Generator: exclude deprecated knn_search endpoint for v9 (#986)
1 parent e57534e commit b58e8f7

File tree

1 file changed

+3
-1
lines changed
  • internal/build/cmd/generate/commands/gensource

1 file changed

+3
-1
lines changed

internal/build/cmd/generate/commands/gensource/command.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ func (cmd *Command) Execute() (err error) {
145145

146146
for _, fpath := range inputFiles {
147147
fname := filepath.Base(fpath)
148-
if fname == "_common.json" || strings.HasPrefix(fname, "_internal") {
148+
if fname == "_common.json" ||
149+
strings.HasPrefix(fname, "_internal") ||
150+
fname == "knn_search.json" {
149151
continue
150152
}
151153

0 commit comments

Comments
 (0)