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
1 change: 1 addition & 0 deletions specification/inference/_types/CommonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,7 @@ export class WatsonxServiceSettings {

export enum WatsonxTaskType {
text_embedding,
rerank,
chat_completion,
completion
}
Expand Down
2 changes: 1 addition & 1 deletion specification/inference/put/PutRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { TaskType } from '@inference/_types/TaskType'
* * Mistral (`chat_completion`, `completion`, `text_embedding`)
* * OpenAI (`chat_completion`, `completion`, `text_embedding`)
* * VoyageAI (`rerank`, `text_embedding`)
* * Watsonx inference integration (`text_embedding`)
* * Watsonx (`chat_completion`, `completion`, `rerank`, `text_embedding`)
* @rest_spec_name inference.put
* @availability stack since=8.11.0 stability=stable visibility=public
* @availability serverless stability=stable visibility=public
Expand Down
8 changes: 8 additions & 0 deletions specification/inference/put_watsonx/PutWatsonxRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
WatsonxServiceType,
WatsonxTaskType
} from '@inference/_types/CommonTypes'
import { InferenceChunkingSettings } from '@inference/_types/Services'

/**
* Create a Watsonx inference endpoint.
Expand Down Expand Up @@ -65,6 +66,13 @@ export interface Request extends RequestBase {
timeout?: Duration
}
body: {
/**
* The chunking configuration object.
* Applies only to the `text_embedding` task type.
* Not applicable to the `rerank`, `completion` or `chat_completion` task types.
* @ext_doc_id inference-chunking
*/
chunking_settings?: InferenceChunkingSettings
/**
* The type of service supported for the specified task type. In this case, `watsonxai`.
*/
Expand Down