Skip to content

Add timeout params for PUT inference and POST inference/_stream #4895

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

Merged
merged 5 commits into from
Jul 15, 2025
Merged
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
1 change: 1 addition & 0 deletions output/typescript/types.ts

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

8 changes: 8 additions & 0 deletions specification/inference/put/PutRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import { InferenceEndpoint } from '@inference/_types/Services'
import { TaskType } from '@inference/_types/TaskType'

Expand Down Expand Up @@ -74,6 +75,13 @@ export interface Request extends RequestBase {
*/
inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
/** @codegen_name inference_config */
body: InferenceEndpoint
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
AlibabaCloudServiceSettings,
AlibabaCloudServiceType,
Expand Down Expand Up @@ -54,6 +55,13 @@ export interface Request extends RequestBase {
*/
alibabacloud_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
AmazonBedrockServiceSettings,
AmazonBedrockServiceType,
Expand Down Expand Up @@ -57,6 +58,13 @@ export interface Request extends RequestBase {
*/
amazonbedrock_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_anthropic/PutAnthropicRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
AnthropicServiceSettings,
AnthropicServiceType,
Expand Down Expand Up @@ -55,6 +56,13 @@ export interface Request extends RequestBase {
*/
anthropic_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
AzureAiStudioServiceSettings,
AzureAiStudioServiceType,
Expand Down Expand Up @@ -54,6 +55,13 @@ export interface Request extends RequestBase {
*/
azureaistudio_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
AzureOpenAIServiceSettings,
AzureOpenAIServiceType,
Expand Down Expand Up @@ -62,6 +63,13 @@ export interface Request extends RequestBase {
*/
azureopenai_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_cohere/PutCohereRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
CohereServiceSettings,
CohereServiceType,
Expand Down Expand Up @@ -54,6 +55,13 @@ export interface Request extends RequestBase {
*/
cohere_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_deepseek/PutDeepSeekRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
DeepSeekServiceSettings,
DeepSeekServiceType
Expand Down Expand Up @@ -53,6 +54,13 @@ export interface Request extends RequestBase {
*/
deepseek_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
ElasticsearchServiceSettings,
ElasticsearchServiceType,
Expand Down Expand Up @@ -68,6 +69,13 @@ export interface Request extends RequestBase {
*/
elasticsearch_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_elser/PutElserRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
ElserServiceSettings,
ElserServiceType,
Expand Down Expand Up @@ -68,6 +69,13 @@ export interface Request extends RequestBase {
*/
elser_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
GoogleAiServiceType,
GoogleAiStudioServiceSettings,
Expand Down Expand Up @@ -53,6 +54,13 @@ export interface Request extends RequestBase {
*/
googleaistudio_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
GoogleVertexAIServiceSettings,
GoogleVertexAIServiceType,
Expand Down Expand Up @@ -54,6 +55,13 @@ export interface Request extends RequestBase {
*/
googlevertexai_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
HuggingFaceServiceSettings,
HuggingFaceServiceType,
Expand Down Expand Up @@ -90,6 +91,13 @@ export interface Request extends RequestBase {
*/
huggingface_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_jinaai/PutJinaAiRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
JinaAIServiceSettings,
JinaAIServiceType,
Expand Down Expand Up @@ -57,6 +58,13 @@ export interface Request extends RequestBase {
*/
jinaai_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_mistral/PutMistralRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
MistralServiceSettings,
MistralServiceType,
Expand Down Expand Up @@ -53,6 +54,13 @@ export interface Request extends RequestBase {
*/
mistral_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_openai/PutOpenAiRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
OpenAIServiceSettings,
OpenAIServiceType,
Expand Down Expand Up @@ -55,6 +56,13 @@ export interface Request extends RequestBase {
*/
openai_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_voyageai/PutVoyageAIRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Duration } from '@_types/Time'
import {
VoyageAIServiceSettings,
VoyageAIServiceType,
Expand Down Expand Up @@ -56,6 +57,13 @@ export interface Request extends RequestBase {
*/
voyageai_inference_id: Id
}
query_parameters: {
/**
* Specifies the amount of time to wait for the inference endpoint to be created.
* @server_default 30s
*/
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
Expand Down
Loading
Loading