Skip to content

Commit

Permalink
Fixing naming inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-rubinstein committed Sep 24, 2024
1 parent d9a58d0 commit a1d6785
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public static ElasticsearchStatusException unknownSettingsError(Map<String, Obje
);
}

public static ElasticsearchStatusException invalidModelTypeForUpdateEmbeddingsModelDetails(Class<? extends Model> invalidModelType) {
public static ElasticsearchStatusException invalidModelTypeForUpdateModelWithEmbeddingDetails(Class<? extends Model> invalidModelType) {
throw new ElasticsearchStatusException(
Strings.format("Can't update embedding details for model with unexpected type %s", invalidModelType),
RestStatus.BAD_REQUEST
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public Model updateModelWithEmbeddingDetails(Model model, int embeddingSize) {

return new GoogleAiStudioEmbeddingsModel(embeddingsModel, updatedServiceSettings);
} else {
throw ServiceUtils.invalidModelTypeForUpdateEmbeddingsModelDetails(model.getClass());
throw ServiceUtils.invalidModelTypeForUpdateModelWithEmbeddingDetails(model.getClass());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public Model updateModelWithEmbeddingDetails(Model model, int embeddingSize) {

return new HuggingFaceEmbeddingsModel(embeddingsModel, updatedServiceSettings);
} else {
throw ServiceUtils.invalidModelTypeForUpdateEmbeddingsModelDetails(model.getClass());
throw ServiceUtils.invalidModelTypeForUpdateModelWithEmbeddingDetails(model.getClass());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public Model updateModelWithEmbeddingDetails(Model model, int embeddingSize) {
);
return new MistralEmbeddingsModel(embeddingsModel, updatedServiceSettings);
} else {
throw ServiceUtils.invalidModelTypeForUpdateEmbeddingsModelDetails(model.getClass());
throw ServiceUtils.invalidModelTypeForUpdateModelWithEmbeddingDetails(model.getClass());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public Model updateModelWithEmbeddingDetails(Model model, int embeddingSize) {

return new OpenAiEmbeddingsModel(embeddingsModel, updatedServiceSettings);
} else {
throw ServiceUtils.invalidModelTypeForUpdateEmbeddingsModelDetails(model.getClass());
throw ServiceUtils.invalidModelTypeForUpdateModelWithEmbeddingDetails(model.getClass());
}
}

Expand Down

0 comments on commit a1d6785

Please sign in to comment.