diff --git a/core/backend/embeddings.go b/core/backend/embeddings.go index 943108540758..03ff90b99208 100644 --- a/core/backend/embeddings.go +++ b/core/backend/embeddings.go @@ -10,10 +10,6 @@ import ( ) func ModelEmbedding(s string, tokens []int, loader *model.ModelLoader, backendConfig config.BackendConfig, appConfig *config.ApplicationConfig) (func() ([]float32, error), error) { - if !backendConfig.Embeddings { - return nil, fmt.Errorf("endpoint disabled for this model by API configuration") - } - modelFile := backendConfig.Model grpcOpts := gRPCModelOpts(backendConfig)