Skip to content

Commit e170b96

Browse files
Refactored javadocs for HuggingFace requests
1 parent d3411d6 commit e170b96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/huggingface/request/completion/HuggingFaceUnifiedChatCompletionRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import static org.elasticsearch.xpack.inference.external.request.RequestUtils.createAuthBearerHeader;
2626

2727
/**
28-
* This class is responsible for creating a request to the Hugging Face API for chat completions.
28+
* This class is responsible for creating Hugging Face chat completions HTTP requests.
2929
* It handles the preparation of the HTTP request with the necessary headers and body.
3030
*/
3131
public class HuggingFaceUnifiedChatCompletionRequest implements Request {

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/huggingface/request/embeddings/HuggingFaceEmbeddingsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import static org.elasticsearch.xpack.inference.external.request.RequestUtils.createAuthBearerHeader;
2626

2727
/**
28-
* This class is responsible for creating a request to the Hugging Face API for embeddings.
28+
* This class is responsible for creating Hugging Face embeddings HTTP requests.
2929
* It handles the truncation of input data and prepares the HTTP request with the necessary headers and body.
3030
*/
3131
public class HuggingFaceEmbeddingsRequest implements Request {

0 commit comments

Comments
 (0)