Skip to content

Commit 1bff037

Browse files
committed
feat(continue-watsonx-ai-provider): add native tool support to model configurations
1 parent da6a8d8 commit 1bff037

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/types/src/providers/ibm-watsonx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export const baseModelInfo: ModelInfo = {
2929
contextWindow: 128000,
3030
supportsImages: false,
3131
supportsPromptCache: false,
32+
supportsNativeTools: true,
33+
defaultToolProtocol: "native",
3234
}
3335

3436
export const watsonxModels = {

src/api/providers/fetchers/ibm-watsonx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export async function getWatsonxModels(
109109
maxTokens,
110110
supportsPromptCache: false,
111111
supportsImages: false,
112+
supportsNativeTools: true,
113+
defaultToolProtocol: "native",
112114
description,
113115
}
114116
}

src/api/providers/ibm-watsonx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ export class WatsonxAIHandler extends BaseProvider implements SingleCompletionHa
294294
contextWindow: 131072,
295295
supportsImages: false,
296296
supportsPromptCache: false,
297+
supportsNativeTools: true,
298+
defaultToolProtocol: "native",
297299
},
298300
}
299301
}

0 commit comments

Comments
 (0)