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 {