Skip to content

Commit a6ba3af

Browse files
authored
chore: Update available model list (#691)
1 parent 1a4973e commit a6ba3af

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.changeset/happy-bobcats-wash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sap-ai-sdk/core': minor
3+
---
4+
5+
[Improvement] Add `gemini-2.0-flash`, `gemini-2.0-flash-lite`, `anthropic--claude-3.7-sonnet` and `deepseek-ai--deepseek-r1` to and remove `gemini-1.0-pro` from the available model list.

packages/core/src/model-types.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export type AzureOpenAiEmbeddingModel = LiteralUnion<
1818
* GCP Vertex AI models for chat completion.
1919
*/
2020
export type GcpVertexAiChatModel = LiteralUnion<
21-
'gemini-1.0-pro' | 'gemini-1.5-pro' | 'gemini-1.5-flash'
21+
| 'gemini-1.5-pro'
22+
| 'gemini-1.5-flash'
23+
| 'gemini-2.0-flash'
24+
| 'gemini-2.0-flash-lite'
2225
>;
2326

2427
/**
@@ -29,6 +32,7 @@ export type AwsBedrockChatModel = LiteralUnion<
2932
| 'anthropic--claude-3-opus'
3033
| 'anthropic--claude-3-sonnet'
3134
| 'anthropic--claude-3.5-sonnet'
35+
| 'anthropic--claude-3.7-sonnet'
3236
| 'amazon--titan-text-express'
3337
| 'amazon--titan-text-lite'
3438
| 'amazon--nova-pro'
@@ -45,4 +49,5 @@ export type AiCoreOpenSourceChatModel = LiteralUnion<
4549
| 'meta--llama3.1-70b-instruct'
4650
| 'ibm--granite-13b-chat'
4751
| 'alephalpha-pharia-1-7b-control'
52+
| 'deepseek-ai--deepseek-r1'
4853
>;

tests/type-tests/test/orchestration.test-d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ expectType<Promise<OrchestrationResponse>>(
248248
);
249249

250250
expect<ChatModel>('custom-model');
251-
expect<ChatModel>('gemini-1.0-pro');
252251

253252
/**
254253
* Filtering Util for Azure content safety.

0 commit comments

Comments
 (0)