Skip to content

chore: Update model list #871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: v1-main
Choose a base branch
from

Conversation

emincihangeri
Copy link

@emincihangeri emincihangeri commented Jul 22, 2025

Context

Closes SAP/ai-sdk-js-backlog#360.

What this PR does and why it is needed

The deprecated and retired models are removed from the available model list. New models are added such as amazon--nova-premier. The full correspondence with SAP notes is considered and applied.

@ZhongpinWang ZhongpinWang changed the title chore: Update model list chore: update model list Jul 22, 2025
@ZhongpinWang ZhongpinWang changed the title chore: update model list chore: Update model list Jul 22, 2025
@ZhongpinWang ZhongpinWang self-requested a review July 22, 2025 13:42
Copy link
Contributor

@KavithaSiva KavithaSiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We found out that nvidia--llama-3.2-nv-embedqa-1b is also being exported, as this cannot be used in any of the clients we provide, please also consider removing this.

Comment on lines 30 to 31
| 'gemini-1.5-pro'
| 'gemini-1.5-flash'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The retirement date of these models are set to 24th September. Why are we removing them sooner? It is not set to deprecated too.

But, I see that they are also in recently retired models list. @ZhongpinWang Have you seen something like this before?

Copy link
Contributor

@ZhongpinWang ZhongpinWang Jul 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The retired models have version 001. Version 002 of both models are not retired or deprecated. @emincihangeri Both of them should not be removed.

Copy link
Contributor

@ZhongpinWang ZhongpinWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comments

Comment on lines 46 to 47
| 'amazon--titan-text-express'
| 'amazon--titan-text-lite'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[req] Both are deprecated. Please remove.

/**
* AI Core open source models for chat completion.
*/
export type AiCoreOpenSourceChatModel = LiteralUnion<
| 'mistralai--mixtral-8x7b-instruct-v01'
| 'mistralai--mistral-large-instruct'
| 'mistralai--mistral-small-instruct'
| 'meta--llama3.1-70b-instruct'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[req] This model is deprecated. Please remove.

Copy link
Contributor

@KavithaSiva KavithaSiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add gemini-1.5-flash and gemini-1.5-pro back in.

@@ -42,33 +41,24 @@ export type AwsBedrockChatModel = LiteralUnion<
| 'anthropic--claude-3-sonnet'
| 'anthropic--claude-3.5-sonnet'
| 'anthropic--claude-3.7-sonnet'
| 'anthropic--claude-4-opus'
| 'anthropic--claude-4-sonnet'
| 'amazon--titan-text-express'
| 'amazon--titan-text-lite'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[req] amazon--titan-text-express and amazon--titan-text-lite are also marked as deprecated. Consider removing them as well.

/**
* AI Core open source models for chat completion.
*/
export type AiCoreOpenSourceChatModel = LiteralUnion<
| 'mistralai--mixtral-8x7b-instruct-v01'
| 'mistralai--mistral-large-instruct'
| 'mistralai--mistral-small-instruct'
| 'meta--llama3.1-70b-instruct'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pp] meta--llama3.1-70b-instruct is also marked as deprecated but will only be retired by 30th September, so we can wait a bit longer here.

Copy link
Contributor

@ZhongpinWang ZhongpinWang Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we remove models in our SDK as soon as they are deprecated and announce the changes. This gives user some time to switch to newer model before the retirement. Otherwise, user may not check SAP notes and trust our SDK as we never announced anything. Then immediately at the retirement, their production code fails.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't see a replacement for the deprecated model though. Is it okay to remove it or put it on the deprecated models list(in the documentation) without a replacement?

@emincihangeri
Copy link
Author

I am applying all the corrections and leave meta--llama3.1-70b-instruct for now on the list, right?

@KavithaSiva
Copy link
Contributor

I am applying all the corrections and leave meta--llama3.1-70b-instruct for now on the list, right?

Also remember to change your base branch to v1-main

@deekshas8
Copy link
Contributor

Remember to make any necessary updates here, if applicable: https://sap.github.io/ai-sdk/docs/js/overview-cloud-sdk-for-ai-js#deprecated-models

@emincihangeri emincihangeri changed the base branch from main to v1-main July 28, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants