Skip to content

Commit 1ead8c5

Browse files
committed
GoogleVertexAiModel added documentation info on rateLimitGroupingHash
1 parent bb68715 commit 1ead8c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/googlevertexai/GoogleVertexAiModel.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ public URI uri() {
6262

6363
@Override
6464
public int rateLimitGroupingHash() {
65-
// In VertexAI rate limiting is scoped to the project and the model. URI already has this information so we are using that
65+
// In VertexAI rate limiting is scoped to the project, region and model. URI already has this information so we are using that.
66+
// API Key does not affect the quota
67+
// https://ai.google.dev/gemini-api/docs/rate-limits
68+
// https://cloud.google.com/vertex-ai/docs/quotas
6669
return Objects.hash(uri);
6770
}
6871

0 commit comments

Comments
 (0)