Skip to content

Commit a0baab6

Browse files
committed
Addresses feedback.
1 parent 3961f12 commit a0baab6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

specification/inference/_types/CommonTypes.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,27 @@ export class CustomServiceSettings {
770770
* ```
771771
*/
772772
headers?: UserDefinedValue
773+
/**
774+
* Specifies the input type translation values that are used to replace the `${input_type}` template in the request body.
775+
* For example:
776+
* ```
777+
* "input_type": {
778+
* "translation": {
779+
* "ingest": "do_ingest",
780+
* "search": "do_search"
781+
* },
782+
* "default": "a_default"
783+
* },
784+
* ```
785+
* If the subsequent inference requests come from a search context, the `search` key will be used and the template will be replaced with `do_search`.
786+
* If it comes from the ingest context `do_ingest` is used. If it's a different context that is not specified, the default value will be used. If no default is specified an empty string is used.
787+
* `transition` can be:
788+
* * `classification`
789+
* * `clustering`
790+
* * `ingest`
791+
* * `search`
792+
*/
793+
input_type?: UserDefinedValue
773794
/**
774795
* Specifies the query parameters as a list of tuples. The arrays inside the `query_parameters` must have two items, a key and a value.
775796
* For example:

0 commit comments

Comments
 (0)