You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/inference/_types/CommonTypes.ts
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -770,6 +770,27 @@ export class CustomServiceSettings {
770
770
* ```
771
771
*/
772
772
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
773
794
/**
774
795
* Specifies the query parameters as a list of tuples. The arrays inside the `query_parameters` must have two items, a key and a value.
0 commit comments