Skip to content

Commit db7f236

Browse files
committed
chore: Update available model list
1 parent 4c6c147 commit db7f236

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.changeset/curly-drinks-taste.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@sap-ai-sdk/orchestration': minor
3+
'@sap-ai-sdk/core': minor
4+
---
5+
6+
[Improvement] Add `cohere--command-a-reasoning`, `mistralai--mistral-medium-instruct` and perplexity-us `sonar` and `sonar-pro` to model list

packages/core/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export type {
77
AzureOpenAiEmbeddingModel,
88
GcpVertexAiChatModel,
99
AwsBedrockChatModel,
10-
AiCoreOpenSourceChatModel
10+
AiCoreOpenSourceChatModel,
11+
PerplexityChatModel
1112
} from './model-types.js';
1213
export { SseStream, LineDecoder, SSEDecoder } from './stream/index.js';

packages/core/src/model-types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,17 @@ export type AwsBedrockChatModel = LiteralUnion<
5252
| 'amazon--nova-premier'
5353
>;
5454

55+
/**
56+
* Perplexity models for chat completion.
57+
*/
58+
export type PerplexityChatModel = LiteralUnion<'sonar' | 'sonar-pro'>;
59+
5560
/**
5661
* AI Core open source models for chat completion.
5762
*/
5863
export type AiCoreOpenSourceChatModel = LiteralUnion<
59-
'mistralai--mistral-large-instruct' | 'mistralai--mistral-small-instruct'
64+
| 'cohere--command-a-reasoning'
65+
| 'mistralai--mistral-large-instruct'
66+
| 'mistralai--mistral-medium-instruct'
67+
| 'mistralai--mistral-small-instruct'
6068
>;

packages/orchestration/src/model-types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type {
22
AiCoreOpenSourceChatModel,
33
AwsBedrockChatModel,
44
AzureOpenAiChatModel,
5-
GcpVertexAiChatModel
5+
GcpVertexAiChatModel,
6+
PerplexityChatModel
67
} from '@sap-ai-sdk/core';
78

89
/**
@@ -12,4 +13,5 @@ export type ChatModel =
1213
| AzureOpenAiChatModel
1314
| GcpVertexAiChatModel
1415
| AwsBedrockChatModel
16+
| PerplexityChatModel
1517
| AiCoreOpenSourceChatModel;

0 commit comments

Comments
 (0)