Skip to content

Commit ff8d11f

Browse files
Update Inference specification for Watsonx's completion and chat completion tasks (#4505)
(cherry picked from commit fe2f14c)
1 parent b8f7eb1 commit ff8d11f

File tree

6 files changed

+28
-16
lines changed

6 files changed

+28
-16
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/inference/_types/CommonTypes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,7 @@ export class WatsonxServiceSettings {
12681268
/**
12691269
* The name of the model to use for the inference task.
12701270
* Refer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.
1271+
* Refer to the IBM library - Foundation models in Watsonx.ai.
12711272
* @ext_doc_id watsonx-api-models
12721273
*/
12731274
model_id: string
@@ -1287,7 +1288,9 @@ export class WatsonxServiceSettings {
12871288
}
12881289

12891290
export enum WatsonxTaskType {
1290-
text_embedding
1291+
text_embedding,
1292+
chat_completion,
1293+
completion
12911294
}
12921295

12931296
export enum WatsonxServiceType {

specification/inference/put_watsonx/PutWatsonxRequest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ export interface Request extends RequestBase {
4646
]
4747
path_parts: {
4848
/**
49-
* The task type.
50-
* The only valid task type for the model to perform is `text_embedding`.
49+
* The type of the inference task that the model will perform.
5150
*/
5251
task_type: WatsonxTaskType
5352
/**

0 commit comments

Comments
 (0)