Skip to content

Commit

Permalink
Delete previous endpoint during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored Nov 13, 2024
1 parent 97341e7 commit 0753b88
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class KnowledgeBaseService {
},
modelId: string | undefined
) {
await deleteInferenceEndpoint({ esClient, logger: this.dependencies.logger }).catch((e) => {}); // ensure existing inference endpoint is deleted
return createInferenceEndpoint({ esClient, logger: this.dependencies.logger, modelId });
}

Expand Down

0 comments on commit 0753b88

Please sign in to comment.