Skip to content

Commit b4c99e6

Browse files
committed
Addresses feedback.
1 parent d568234 commit b4c99e6

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

specification/inference/_types/CommonTypes.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,7 @@ export class CustomRequestParams {
799799
* The body structure of the request. It requires passing in the string-escaped result of the JSON format HTTP request body.
800800
* For example:
801801
* ```
802-
* "request":{
803-
* "content":"{\"input\":${input}}"
804-
* }
802+
* "request": "{\"input\":${input}}"
805803
* ```
806804
* > info
807805
* > The content string needs to be a single line except using the Kibana console.
@@ -810,18 +808,6 @@ export class CustomRequestParams {
810808
}
811809

812810
export class CustomResponseParams {
813-
/**
814-
* Specifies the path to the error message in the response from the custom service.
815-
* For example:
816-
* ```
817-
* "response": {
818-
* "error_parser": {
819-
* "path": "$.error.message"
820-
* }
821-
* }
822-
* ```
823-
*/
824-
error_parser: UserDefinedValue
825811
/**
826812
* Specifies the JSON parser that is used to parse the response from the custom service.
827813
* Different task types require different json_parser parameters.

specification/inference/put_custom/PutCustomRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import { InferenceChunkingSettings } from '@inference/_types/Services'
3030
/**
3131
* Create a custom inference endpoint.
3232
*
33-
* You can create an inference endpoint to perform an inference task with a custom model that supports the HTTP format.
33+
* The custom service gives more control over how to interact with external inference services that aren't explicitly supported through dedicated integrations.
34+
* The custom service gives you the ability to define the headers, url, query parameters, request body, and secrets.
3435
* @rest_spec_name inference.put_custom
3536
* @availability stack since=8.13.0 stability=stable visibility=public
3637
* @availability serverless stability=stable visibility=public

0 commit comments

Comments
 (0)