Skip to content

Commit d63c4d7

Browse files
committed
Format fix.
1 parent a0baab6 commit d63c4d7

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

specification/inference/_types/CommonTypes.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -774,20 +774,20 @@ export class CustomServiceSettings {
774774
* Specifies the input type translation values that are used to replace the `${input_type}` template in the request body.
775775
* For example:
776776
* ```
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"
783783
* },
784784
* ```
785785
* 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`.
786786
* 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.
787787
* `transition` can be:
788-
* * `classification`
789-
* * `clustering`
790-
* * `ingest`
788+
* * `classification`
789+
* * `clustering`
790+
* * `ingest`
791791
* * `search`
792792
*/
793793
input_type?: UserDefinedValue
@@ -847,7 +847,7 @@ export class CustomResponseParams {
847847
* ```
848848
* # text_embedding
849849
* # For a response like this:
850-
*
850+
*
851851
* {
852852
* "object": "list",
853853
* "data": [
@@ -866,9 +866,9 @@ export class CustomResponseParams {
866866
* "total_tokens": 8
867867
* }
868868
* }
869-
*
869+
*
870870
* # the json_parser definition should look like this:
871-
*
871+
*
872872
* "response":{
873873
* "json_parser":{
874874
* "text_embeddings":"$.data[*].embedding[*]"
@@ -877,7 +877,7 @@ export class CustomResponseParams {
877877
*
878878
* # sparse_embedding
879879
* # For a response like this:
880-
*
880+
*
881881
* {
882882
* "request_id": "75C50B5B-E79E-4930-****-F48DBB392231",
883883
* "latency": 22,
@@ -902,9 +902,9 @@ export class CustomResponseParams {
902902
* ]
903903
* }
904904
* }
905-
*
905+
*
906906
* # the json_parser definition should look like this:
907-
*
907+
*
908908
* "response":{
909909
* "json_parser":{
910910
* "token_path":"$.result.sparse_embeddings[*].embedding[*].token_id",
@@ -914,7 +914,7 @@ export class CustomResponseParams {
914914
*
915915
* # rerank
916916
* # For a response like this:
917-
*
917+
*
918918
* {
919919
* "results": [
920920
* {
@@ -934,9 +934,9 @@ export class CustomResponseParams {
934934
* }
935935
* ],
936936
* }
937-
*
938-
* # the json_parser definition should look like this:
939-
*
937+
*
938+
* # the json_parser definition should look like this:
939+
*
940940
* "response":{
941941
* "json_parser":{
942942
* "reranked_index":"$.result.scores[*].index", // optional
@@ -947,7 +947,7 @@ export class CustomResponseParams {
947947
*
948948
* # completion
949949
* # For a response like this:
950-
*
950+
*
951951
* {
952952
* "id": "chatcmpl-B9MBs8CjcvOU2jLn4n570S5qMJKcT",
953953
* "object": "chat.completion",
@@ -967,9 +967,9 @@ export class CustomResponseParams {
967967
* }
968968
* ]
969969
* }
970-
*
970+
*
971971
* # the json_parser definition should look like this:
972-
*
972+
*
973973
* "response":{
974974
* "json_parser":{
975975
* "completion_result":"$.choices[*].message.content"

specification/inference/put_custom/PutCustomRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ import { InferenceChunkingSettings } from '@inference/_types/Services'
6060
* }
6161
* ```
6262
* To replace `${api_key}` the `secret_parameters` and `task_settings` are checked for a key named `api_key`.
63-
*
63+
*
6464
* > info
6565
* > Templates should not be surrounded by quotes.
66-
*
66+
*
6767
* Pre-defined templates:
6868
* * `${input}` refers to the array of input strings that comes from the `input` field of the subsequent inference requests.
6969
* * `${input_type}` refers to the input type translation values.

0 commit comments

Comments
 (0)