Skip to content

Commit caf5243

Browse files
Auto-generated API code
1 parent 3571c1e commit caf5243

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/reference/api-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7878,7 +7878,7 @@ client.inference.putCustom({ task_type, custom_inference_id, service, service_se
78787878
- **`task_type` (Enum("text_embedding" \| "sparse_embedding" \| "rerank" \| "completion"))**: The type of the inference task that the model will perform.
78797879
- **`custom_inference_id` (string)**: The unique identifier of the inference endpoint.
78807880
- **`service` (Enum("custom"))**: The type of service supported for the specified task type. In this case, `custom`.
7881-
- **`service_settings` ({ headers, input_type, query_parameters, request, response, secret_parameters, url })**: Settings used to install the inference model.
7881+
- **`service_settings` ({ batch_size, headers, input_type, query_parameters, request, response, secret_parameters, url })**: Settings used to install the inference model.
78827882
These settings are specific to the `custom` service.
78837883
- **`chunking_settings` (Optional, { max_chunk_size, overlap, sentence_overlap, separator_group, separators, strategy })**: The chunking configuration object.
78847884
- **`task_settings` (Optional, { parameters })**: Settings to configure the inference task.

src/api/types.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7420,7 +7420,7 @@ export interface AnalysisKeywordTokenizer extends AnalysisTokenizerBase {
74207420

74217421
export interface AnalysisKuromojiAnalyzer {
74227422
type: 'kuromoji'
7423-
mode: AnalysisKuromojiTokenizationMode
7423+
mode?: AnalysisKuromojiTokenizationMode
74247424
user_dictionary?: string
74257425
}
74267426

@@ -22979,7 +22979,11 @@ export interface InferenceCustomResponseParams {
2297922979
}
2298022980

2298122981
export interface InferenceCustomServiceSettings {
22982-
/** Specifies the HTTPS header parameters – such as `Authentication` or `Contet-Type` – that are required to access the custom service.
22982+
/** Specifies the batch size used for the semantic_text field. If the field is not provided, the default is 10.
22983+
* The batch size is the maximum number of inputs in a single request to the upstream service.
22984+
* The chunk within the batch are controlled by the selected chunking strategy for the semantic_text field. */
22985+
batch_size?: integer
22986+
/** Specifies the HTTP header parameters – such as `Authentication` or `Content-Type` – that are required to access the custom service.
2298322987
* For example:
2298422988
* ```
2298522989
* "headers":{

0 commit comments

Comments
 (0)