Skip to content

Commit 3ef14d9

Browse files
Add a comment
1 parent f6207db commit 3ef14d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/huggingface/rerank/HuggingFaceRerankServiceSettings.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ public int maxInputTokens() {
9797
return RERANK_TOKEN_LIMIT;
9898
}
9999

100+
// Sometimes the model is not defined in the service settings.
101+
// This can happen for external providers (e.g. hugging face, azure ai studio)
102+
// where the provider requires that the model be chosen when initializing a deployment within their service.
103+
// In this situation, return null.
100104
@Override
101105
public String modelId() {
102106
return null;

0 commit comments

Comments
 (0)