File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -807,7 +807,7 @@ export class CustomRequestParams {
807807 * > The content string needs to be a single line except using the Kibana console.
808808 */
809809 content : string
810- }
810+ }
811811
812812export class CustomResponseParams {
813813 /**
@@ -822,7 +822,7 @@ export class CustomResponseParams {
822822 * ```
823823 */
824824 error_parser : object
825- /**
825+ /**
826826 * Specifies the JSON parser that is used to parse the response from the custom service.
827827 * Different task types require different json_parser parameters.
828828 * For example:
@@ -833,15 +833,15 @@ export class CustomResponseParams {
833833 * "text_embeddings":"$.result.embeddings[*].embedding"
834834 * }
835835 * }
836- *
836+ *
837837 * # sparse_embedding
838838 * "response":{
839839 * "json_parser":{
840840 * "token_path":"$.result[*].embeddings[*].token",
841841 * "weight_path":"$.result[*].embeddings[*].weight"
842842 * }
843843 * }
844- *
844+ *
845845 * # rerank
846846 * "response":{
847847 * "json_parser":{
@@ -850,7 +850,7 @@ export class CustomResponseParams {
850850 * "document_text":"xxx" // optional
851851 * }
852852 * }
853- *
853+ *
854854 * # completion
855855 * "response":{
856856 * "json_parser":{
Original file line number Diff line number Diff line change @@ -75,4 +75,4 @@ export interface Request extends RequestBase {
7575 */
7676 task_settings ?: CustomTaskSettings
7777 }
78- }
78+ }
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ import { InferenceEndpointInfoCustom } from '@inference/_types/Services'
2222export class Response {
2323 /** @codegen_name endpoint_info */
2424 body : InferenceEndpointInfoCustom
25- }
25+ }
You can’t perform that action at this time.
0 commit comments