From d72dfbda4904f3ee0d574109a72f1134892012ef Mon Sep 17 00:00:00 2001 From: Tommaso Bolis Date: Mon, 25 Nov 2024 11:13:48 +0100 Subject: [PATCH] Config expect https://yourdomain.my.salesforce.com --- .../vectors/internal/model/einstein/EinsteinEmbeddingModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mule/extension/vectors/internal/model/einstein/EinsteinEmbeddingModel.java b/src/main/java/org/mule/extension/vectors/internal/model/einstein/EinsteinEmbeddingModel.java index 6379182..e90fe5f 100644 --- a/src/main/java/org/mule/extension/vectors/internal/model/einstein/EinsteinEmbeddingModel.java +++ b/src/main/java/org/mule/extension/vectors/internal/model/einstein/EinsteinEmbeddingModel.java @@ -140,7 +140,7 @@ private Response> embedTexts(List texts) { * @throws ModuleException if authentication fails */ private String getAccessToken(String salesforceOrg, String clientId, String clientSecret) { - String urlString = "https://" + salesforceOrg + ".my.salesforce.com/services/oauth2/token"; + String urlString = salesforceOrg + "/services/oauth2/token"; String params = "grant_type=client_credentials&client_id=" + clientId + "&client_secret=" + clientSecret; try {