Skip to content

chore: Sync model types from SAP Notes and recent announcements #1996

Merged
davidkna-sap merged 1 commit into
mainfrom
model-types-update/2026-07-03
Jul 3, 2026
Merged

chore: Sync model types from SAP Notes and recent announcements #1996
davidkna-sap merged 1 commit into
mainfrom
model-types-update/2026-07-03

Conversation

@davidkna-sap

Copy link
Copy Markdown
Member

Automated sync of model types from SAP Notes 3437766.

Changes

  • Marked deprecated in sap-models.json: gpt-4o (2024-11-20), gpt-4.1, gpt-4.1-mini, o1, o3-mini, o3, o4-mini, gemini-2.5-flash-image
  • Corrected amazon--nova-premier retirement date: 2026-09-10 → 2026-09-14
  • Added retired entries: gpt-35-turbo v0613, amazon--titan-image-generator v2
  • Removed from model-types.ts: gpt-4.1, gpt-4.1-mini, o3, o4-mini
  • Updated sample code: llm-batch.tsgpt-5, packages/openai/src/client.ts JSDoc → gpt-5.4

Definition of Done

  • Model names are correct
  • Compilation passes
  • Release notes / Changeset updated if needed

Co-Authored-By: Claude <noreply@anthropic.com>
Comment thread sample-code/src/llm-batch.ts
@davidkna-sap davidkna-sap changed the title chore: Sync model types from SAP Notes chore: Sync model types from SAP Notes and recent announcements Jul 3, 2026
@davidkna-sap davidkna-sap marked this pull request as ready for review July 3, 2026 11:51
@hyperspace-insights

Copy link
Copy Markdown
Contributor

Summary

The following content is AI-generated and provides a summary of the pull request:


Sync Model Types from SAP Notes and Recent Announcements

What this PR does and why it is needed

This PR synchronizes the AI SDK model types and metadata with the latest information from SAP Notes 3437766 and recent model lifecycle announcements.

Changes summary:

scripts/sap-models.json — Model metadata updates:

  • 🔴 Marked as deprecated: gpt-4o (2024-11-20), gpt-4.1, gpt-4.1-mini, o1, o3-mini, o3, o4-mini, gemini-2.5-flash-image
  • 📅 Corrected retirement date for amazon--nova-premier: 2026-09-102026-09-14
  • ⚰️ Added retired entries: gpt-35-turbo (v0613) and amazon--titan-image-generator (v2)

packages/core/src/model-types.ts — Type definition cleanup:

  • 🗑️ Removed deprecated models gpt-4.1, gpt-4.1-mini, o3, and o4-mini from AzureOpenAiChatModel type union

packages/openai/src/client.ts — JSDoc update:

  • 📝 Updated example model in JSDoc from gpt-4.1 to gpt-5.4

sample-code/src/llm-batch.ts — Sample code update:

  • 📝 Updated batch sample code model references from gpt-4.1 to gpt-5

.changeset/model-types-sync-2026-07-03.md — Changeset:

  • 📦 Added minor changeset for @sap-ai-sdk/core documenting the removal of deprecated models with their retirement dates (2026-10-14 for gpt-4.1/gpt-4.1-mini, 2026-10-16 for o3/o4-mini)

  • 🔄 Regenerate and Update Summary
  • ✏️ Insert as PR Description (deletes this comment)
  • 🗑️ Delete comment
PR Bot Information

Version: 1.26.14

  • LLM: anthropic--claude-4.6-sonnet
  • Output Template: Repository PR Template
  • Event Trigger: pull_request.ready_for_review
  • Correlation ID: 79bf7c60-76d5-11f1-8861-4c67610fa29c
  • File Content Strategy: Full file content
  • Summary Prompt: Default Prompt

@InjunPark-sap InjunPark-sap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@davidkna-sap davidkna-sap merged commit a8c9b29 into main Jul 3, 2026
15 checks passed
@davidkna-sap davidkna-sap deleted the model-types-update/2026-07-03 branch July 3, 2026 13:22
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.

2 participants