Skip to content

[DOCS] Clarify default rate limit settings #4472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions specification/inference/_types/Services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,30 @@ export type ServiceSettings = UserDefinedValue

export type TaskSettings = UserDefinedValue

/**
* This setting helps to minimize the number of rate limit errors returned from the service.
*/
export class RateLimitSetting {
/**
* The number of requests allowed per minute.
* By default, the number of requests allowed per minute is set by each service as follows:
*
* * `alibabacloud-ai-search` service: `1000`
* * `anthropic` service: `50`
* * `azureaistudio` service: `240`
* * `azureopenai` service and task type `text_embedding`: `1440`
* * `azureopenai` service and task type `completion`: `120`
* * `cohere` service: `10000`
* * `elastic` service and task type `chat_completion`: `240`
* * `googleaistudio` service: `360`
* * `googlevertexai` service: `30000`
* * `hugging_face` service: `3000`
* * `jinaai` service: `2000`
* * `mistral` service: `240`
* * `openai` service and task type `text_embedding`: `3000`
* * `openai` service and task type `completion`: `500`
* * `voyageai` service: `2000`
* * `watsonxai` service: `120`
*/
requests_per_minute?: integer
}