Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 19 additions & 7 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion specification/inference/_types/CommonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,7 @@ export class WatsonxServiceSettings {
/**
* The name of the model to use for the inference task.
* Refer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.
* Refer to the IBM library - Foundation models in Watsonx.ai.
* @ext_doc_id watsonx-api-models
*/
model_id: string
Expand All @@ -1274,7 +1275,9 @@ export class WatsonxServiceSettings {
}

export enum WatsonxTaskType {
text_embedding
text_embedding,
chat_completion,
completion
}

export enum WatsonxServiceType {
Expand Down
4 changes: 3 additions & 1 deletion specification/inference/_types/TaskType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ export enum TaskTypeVoyageAI {
}

export enum TaskTypeWatsonx {
text_embedding
text_embedding,
chat_completion,
completion
}
3 changes: 1 addition & 2 deletions specification/inference/put_watsonx/PutWatsonxRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export interface Request extends RequestBase {
]
path_parts: {
/**
* The task type.
* The only valid task type for the model to perform is `text_embedding`.
* The type of the inference task that the model will perform.
*/
task_type: WatsonxTaskType
/**
Expand Down