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
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -774,20 +774,20 @@ export class CustomServiceSettings {
774
774
* Specifies the input type translation values that are used to replace the `${input_type}` template in the request body.
775
775
* For example:
776
776
* ```
777
-
* "input_type": {
778
-
* "translation": {
779
-
* "ingest": "do_ingest",
780
-
* "search": "do_search"
781
-
* },
782
-
* "default": "a_default"
777
+
* "input_type": {
778
+
* "translation": {
779
+
* "ingest": "do_ingest",
780
+
* "search": "do_search"
781
+
* },
782
+
* "default": "a_default"
783
783
* },
784
784
* ```
785
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
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
787
* `transition` can be:
788
-
* * `classification`
789
-
* * `clustering`
790
-
* * `ingest`
788
+
* * `classification`
789
+
* * `clustering`
790
+
* * `ingest`
791
791
* * `search`
792
792
*/
793
793
input_type?: UserDefinedValue
@@ -847,7 +847,7 @@ export class CustomResponseParams {
847
847
* ```
848
848
* # text_embedding
849
849
* # For a response like this:
850
-
*
850
+
*
851
851
* {
852
852
* "object": "list",
853
853
* "data": [
@@ -866,9 +866,9 @@ export class CustomResponseParams {
866
866
* "total_tokens": 8
867
867
* }
868
868
* }
869
-
*
869
+
*
870
870
* # the json_parser definition should look like this:
871
-
*
871
+
*
872
872
* "response":{
873
873
* "json_parser":{
874
874
* "text_embeddings":"$.data[*].embedding[*]"
@@ -877,7 +877,7 @@ export class CustomResponseParams {
0 commit comments