From 2c45f864ce91975cb7765b0bb2723045f67b0ce0 Mon Sep 17 00:00:00 2001 From: Vladimir Aseev Date: Thu, 24 Sep 2026 16:32:39 +0200 Subject: [PATCH 1/5] remove deprecated models from the code --- .../foundationmodels/openai/OpenAiModel.java | 81 ----- .../orchestration/OrchestrationAiModel.java | 279 ------------------ 2 files changed, 360 deletions(-) diff --git a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiModel.java b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiModel.java index 6f9fb8166..48764a7bd 100644 --- a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiModel.java +++ b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiModel.java @@ -16,79 +16,9 @@ */ public record OpenAiModel(@Nonnull String name, @Nullable String version) implements AiModel { - /** - * internal [Azure OpenAI dall-e-3 model] - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated public static final OpenAiModel DALL_E_3 = new OpenAiModel("dall-e-3", null); - - /** - * Azure OpenAI GPT-3.5 Turbo model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The - * suggested replacement model is {@link OpenAiModel#GPT_4O_MINI}. - */ - @Deprecated public static final OpenAiModel GPT_35_TURBO = new OpenAiModel("gpt-35-turbo", null); - - /** - * Azure OpenAI GPT-3.5 Turbo model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-22. The - * suggested replacement model is {@link OpenAiModel#GPT_4O_MINI}. - */ - @Deprecated - public static final OpenAiModel GPT_35_TURBO_1025 = new OpenAiModel("gpt-35-turbo-0125", null); - - /** - * Azure OpenAI GPT-3.5 Turbo model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-02-13. The - * suggested replacement model is {@link OpenAiModel#GPT_4O_MINI}. - */ - @Deprecated - public static final OpenAiModel GPT_35_TURBO_16K = new OpenAiModel("gpt-35-turbo-16k", null); - - /** - * Azure OpenAI GPT-4 model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-01. The - * suggested replacement model is {@link OpenAiModel#GPT_4O} or {@link OpenAiModel#GPT_41}. - */ - @Deprecated public static final OpenAiModel GPT_4 = new OpenAiModel("gpt-4", null); - - /** - * Azure OpenAI GPT-4 model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated public static final OpenAiModel GPT_4_32K = new OpenAiModel("gpt-4-32k", null); - /** Azure OpenAI GPT-4o model */ public static final OpenAiModel GPT_4O = new OpenAiModel("gpt-4o", null); - /** - * Azure OpenAI GPT-4o Mini model - * - * @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link - * OpenAiModel#GPT_5_MINI}. - */ - @Deprecated public static final OpenAiModel GPT_4O_MINI = new OpenAiModel("gpt-4o-mini", null); - - /** - * Azure OpenAI GPT-o3 Mini model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated public static final OpenAiModel O3_MINI = new OpenAiModel("o3-mini", null); - - /** - * Azure OpenAI GPT-o1 model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated public static final OpenAiModel O1 = new OpenAiModel("o1", null); - /** Azure OpenAI Text Embedding 3 Large model */ public static final OpenAiModel TEXT_EMBEDDING_3_LARGE = new OpenAiModel("text-embedding-3-large", null); @@ -151,17 +81,6 @@ public record OpenAiModel(@Nonnull String name, @Nullable String version) implem /** Azure OpenAI GPT-5.6-terra model */ public static final OpenAiModel GPT_56_TERRA = new OpenAiModel("gpt-5.6-terra", null); - /** - * Azure OpenAI Text Embedding ADA 002 model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-10-03. The - * suggested replacement models are {@link OpenAiModel#TEXT_EMBEDDING_3_SMALL} and {@link - * OpenAiModel#TEXT_EMBEDDING_3_LARGE}. - */ - @Deprecated - public static final OpenAiModel TEXT_EMBEDDING_ADA_002 = - new OpenAiModel("text-embedding-ada-002", null); - /** * Create a new instance of OpenAiModel with the provided version. * diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationAiModel.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationAiModel.java index 2448f7920..075dd3be1 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationAiModel.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationAiModel.java @@ -43,48 +43,10 @@ public class OrchestrationAiModel { /** The version of the model, defaults to "latest". */ String version; - /** - * IBM Granite 13B Chat model - * - * @deprecated This model is deprecated on AI Core with a planned retirement not earlier than - * 2025-09-30. - */ - @Deprecated - public static final OrchestrationAiModel IBM_GRANITE_13B_CHAT = - new OrchestrationAiModel("ibm--granite-13b-chat"); - - /** - * MistralAI Mistral Large Instruct model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated - public static final OrchestrationAiModel MISTRAL_LARGE_INSTRUCT = - new OrchestrationAiModel("mistralai--mistral-large-instruct"); - - /** - * MistralAI Mistral Small Instruct model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated - public static final OrchestrationAiModel MISTRAL_SMALL_INSTRUCT = - new OrchestrationAiModel("mistralai--mistral-small-instruct"); - /** MistralAI Mistral Medium Instruct model */ public static final OrchestrationAiModel MISTRAL_MEDIUM_INSTRUCT = new OrchestrationAiModel("mistralai--mistral-medium-instruct"); - /** - * MistralAI Mixtral 8x7B Instruct v01 model - * - * @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link - * OrchestrationAiModel#MISTRAL_SMALL_INSTRUCT}. - */ - @Deprecated - public static final OrchestrationAiModel MIXTRAL_8X7B_INSTRUCT_V01 = - new OrchestrationAiModel("mistralai--mixtral-8x7b-instruct-v01"); - /** MistralAI Mistral Small model */ public static final OrchestrationAiModel MISTRAL_SMALL = new OrchestrationAiModel("mistralai--mistral-small"); @@ -93,24 +55,6 @@ public class OrchestrationAiModel { public static final OrchestrationAiModel MISTRAL_MEDIUM = new OrchestrationAiModel("mistralai--mistral-medium"); - /** - * Meta Llama3 70B Instruct model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated - public static final OrchestrationAiModel LLAMA3_70B_INSTRUCT = - new OrchestrationAiModel("meta--llama3-70b-instruct"); - - /** - * Meta Llama3.1 70B Instruct model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-07-30. - */ - @Deprecated - public static final OrchestrationAiModel LLAMA3_1_70B_INSTRUCT = - new OrchestrationAiModel("meta--llama3.1-70b-instruct"); - /** Meta Llama Cinderella DN model */ public static final OrchestrationAiModel LLAMA_CINDERELLA_DN = new OrchestrationAiModel("llama-cinderella-dn"); @@ -119,55 +63,6 @@ public class OrchestrationAiModel { public static final OrchestrationAiModel COHERE_COMMAND_A_REASONING = new OrchestrationAiModel("cohere--command-a-reasoning"); - /** - * Anthropic Claude 3 Sonnet model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-07-21. The - * suggested replacement model is {@link OrchestrationAiModel#CLAUDE_4_SONNET}. - */ - @Deprecated - public static final OrchestrationAiModel CLAUDE_3_SONNET = - new OrchestrationAiModel("anthropic--claude-3-sonnet"); - - /** - * Anthropic Claude 3 Haiku model - * - * @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link - * OrchestrationAiModel#CLAUDE_4_5_HAIKU}. - */ - @Deprecated - public static final OrchestrationAiModel CLAUDE_3_HAIKU = - new OrchestrationAiModel("anthropic--claude-3-haiku"); - - /** - * Anthropic Claude 3 Opus model - * - * @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link - * OrchestrationAiModel#CLAUDE_4_OPUS}. - */ - @Deprecated - public static final OrchestrationAiModel CLAUDE_3_OPUS = - new OrchestrationAiModel("anthropic--claude-3-opus"); - - /** - * Anthropic Claude 3.5 Sonnet model - * - * @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link - * OrchestrationAiModel#CLAUDE_4_SONNET}. - */ - @Deprecated - public static final OrchestrationAiModel CLAUDE_3_5_SONNET = - new OrchestrationAiModel("anthropic--claude-3.5-sonnet"); - - /** - * Anthropic Claude 3.7 Sonnet model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-04-28. - */ - @Deprecated - public static final OrchestrationAiModel CLAUDE_3_7_SONNET = - new OrchestrationAiModel("anthropic--claude-3.7-sonnet"); - /** Anthropic Claude 4 Opus model */ public static final OrchestrationAiModel CLAUDE_4_OPUS = new OrchestrationAiModel("anthropic--claude-4-opus"); @@ -176,16 +71,6 @@ public class OrchestrationAiModel { public static final OrchestrationAiModel CLAUDE_4_5_OPUS = new OrchestrationAiModel("anthropic--claude-4.5-opus"); - /** - * Anthropic Claude 4 Sonnet model - * - * @deprecated This model is deprecated on AI Core. The suggested replacement model is {@link - * OrchestrationAiModel#CLAUDE_4_5_SONNET}. - */ - @Deprecated - public static final OrchestrationAiModel CLAUDE_4_SONNET = - new OrchestrationAiModel("anthropic--claude-4-sonnet"); - /** Anthropic Claude 4.5 Sonnet model */ public static final OrchestrationAiModel CLAUDE_4_5_SONNET = new OrchestrationAiModel("anthropic--claude-4.5-sonnet"); @@ -210,24 +95,6 @@ public class OrchestrationAiModel { public static final OrchestrationAiModel CLAUDE_4_8_OPUS = new OrchestrationAiModel("anthropic--claude-4.8-opus"); - /** - * Amazon Titan Text Lite model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-08-15. - */ - @Deprecated - public static final OrchestrationAiModel TITAN_TEXT_LITE = - new OrchestrationAiModel("amazon--titan-text-lite"); - - /** - * Amazon Titan Text Express model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-08-15. - */ - @Deprecated - public static final OrchestrationAiModel TITAN_TEXT_EXPRESS = - new OrchestrationAiModel("amazon--titan-text-express"); - /** Amazon Nova Pro model */ public static final OrchestrationAiModel NOVA_PRO = new OrchestrationAiModel("amazon--nova-pro"); @@ -243,43 +110,6 @@ public class OrchestrationAiModel { public static final OrchestrationAiModel NOVA_PREMIER = new OrchestrationAiModel("amazon--nova-premier"); - /** - * Azure OpenAI GPT-3.5 Turbo model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-01. The - * suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}. - */ - @Deprecated - public static final OrchestrationAiModel GPT_35_TURBO = new OrchestrationAiModel("gpt-35-turbo"); - - /** - * Azure OpenAI GPT-3.5 Turbo model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated - public static final OrchestrationAiModel GPT_35_TURBO_16K = - new OrchestrationAiModel("gpt-35-turbo-16k"); - - /** - * Azure OpenAI GPT-3.5 Turbo model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-01. The - * suggested replacement model is {@link OrchestrationAiModel#GPT_4O_MINI}. - */ - @Deprecated - public static final OrchestrationAiModel GPT_35_TURBO_0125 = - new OrchestrationAiModel("gpt-35-turbo-0125"); - - /** - * Azure OpenAI GPT-4 model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-01. The - * suggested replacement model is {@link OrchestrationAiModel#GPT_4O} or {@link - * OrchestrationAiModel#GPT_41}. - */ - @Deprecated public static final OrchestrationAiModel GPT_4 = new OrchestrationAiModel("gpt-4"); - /** Azure OpenAI GPT-4.1-mini model */ public static final OrchestrationAiModel GPT_41_MINI = new OrchestrationAiModel("gpt-4.1-mini"); @@ -289,50 +119,9 @@ public class OrchestrationAiModel { /** Azure OpenAI GPT-4.1-nano model */ public static final OrchestrationAiModel GPT_41_NANO = new OrchestrationAiModel("gpt-4.1-nano"); - /** - * Azure OpenAI GPT-4 model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated - public static final OrchestrationAiModel GPT_4_32K = new OrchestrationAiModel("gpt-4-32k"); - - /** - * Azure OpenAI GPT-4 version 0613 model - * - * @deprecated This model is deprecated on AI Core.The suggested replacement model is {@link - * OrchestrationAiModel#GPT_4O} or {@link OrchestrationAiModel#GPT_41}. - */ - @Deprecated - public static final OrchestrationAiModel GPT_4_0613 = new OrchestrationAiModel("gpt-4-0613"); - /** Azure OpenAI GPT-4o model */ public static final OrchestrationAiModel GPT_4O = new OrchestrationAiModel("gpt-4o"); - /** - * Azure OpenAI GPT-4o-mini model - * - * @deprecated This model is deprecated on AI Core.The suggested replacement model is {@link - * OrchestrationAiModel#GPT_5_MINI}. - */ - @Deprecated - public static final OrchestrationAiModel GPT_4O_MINI = new OrchestrationAiModel("gpt-4o-mini"); - - /** - * Azure OpenAI o1 model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated public static final OrchestrationAiModel OPENAI_O1 = new OrchestrationAiModel("o1"); - - /** - * Azure OpenAI o3-mini model - * - * @deprecated This model is deprecated on AI Core. - */ - @Deprecated - public static final OrchestrationAiModel OPENAI_O3_MINI = new OrchestrationAiModel("o3-mini"); - /** Azure OpenAI o4-mini model */ public static final OrchestrationAiModel OPENAI_O4_MINI = new OrchestrationAiModel("o4-mini"); @@ -375,55 +164,6 @@ public class OrchestrationAiModel { /** Azure OpenAI GPT-5.6-terra model */ public static final OrchestrationAiModel GPT_56_TERRA = new OrchestrationAiModel("gpt-5.6-terra"); - /** - * Google Cloud Platform Gemini 1.0 Pro model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-04-09. The - * suggested replacement model is {@link OrchestrationAiModel#GEMINI_2_0_FLASH} or {@link - * OrchestrationAiModel#GEMINI_2_0_FLASH_LITE}. - */ - @Deprecated - public static final OrchestrationAiModel GEMINI_1_0_PRO = - new OrchestrationAiModel("gemini-1.0-pro"); - - /** - * Google Cloud Platform Gemini 1.5 Pro model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-24. The - * suggested replacement model is {@link OrchestrationAiModel#GEMINI_2_5_PRO}. - */ - @Deprecated - public static final OrchestrationAiModel GEMINI_1_5_PRO = - new OrchestrationAiModel("gemini-1.5-pro"); - - /** - * Google Cloud Platform Gemini 1.5 Flash model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-09-24. The - * suggested replacement model is {@link OrchestrationAiModel#GEMINI_2_5_FLASH}. - */ - @Deprecated - public static final OrchestrationAiModel GEMINI_1_5_FLASH = - new OrchestrationAiModel("gemini-1.5-flash"); - - /** - * Google Cloud Platform Gemini 2.0 Flash model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2026-02-05. - */ - @Deprecated - public static final OrchestrationAiModel GEMINI_2_0_FLASH = - new OrchestrationAiModel("gemini-2.0-flash"); - - /** - * Google Cloud Platform Gemini 2.0 Flash-Lite model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2026-02-25. - */ - @Deprecated - public static final OrchestrationAiModel GEMINI_2_0_FLASH_LITE = - new OrchestrationAiModel("gemini-2.0-flash-lite"); - /** Google Cloud Platform Gemini 2.5 Flash model */ public static final OrchestrationAiModel GEMINI_2_5_FLASH = new OrchestrationAiModel("gemini-2.5-flash"); @@ -460,25 +200,6 @@ public class OrchestrationAiModel { public static final OrchestrationAiModel GEMINI_3_8_FLASH = new OrchestrationAiModel("gemini-3.8-flash"); - /** - * Alephalpha-pharia-1-7b-control model - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-10-31. The - * suggested replacement model is {@link OrchestrationAiModel#MISTRAL_SMALL_INSTRUCT}. - */ - @Deprecated - public static final OrchestrationAiModel ALEPHALPHA_PHARIA_1_7B_CONTROL = - new OrchestrationAiModel("alephalpha-pharia-1-7b-control"); - - /** - * DeepSeek-R1 - * - * @deprecated This model is deprecated on AI Core with a planned retirement on 2025-11-31. - */ - @Deprecated - public static final OrchestrationAiModel DEEPSEEK_R1 = - new OrchestrationAiModel("deepseek-ai--deepseek-r1"); - /** Perplexity AI Sonar model */ public static final OrchestrationAiModel SONAR = new OrchestrationAiModel("sonar"); From 8315e4f966b2ca18e7ce08cf26855ad781d1d5f2 Mon Sep 17 00:00:00 2001 From: Vladimir Aseev Date: Thu, 24 Sep 2026 16:48:38 +0200 Subject: [PATCH 2/5] update release notes --- docs/release_notes.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/release_notes.md b/docs/release_notes.md index 120f51b39..98a38157e 100644 --- a/docs/release_notes.md +++ b/docs/release_notes.md @@ -12,6 +12,48 @@ - [Orchestration] Spring AI support was upgraded to version `2.0.1` - [Prompt Registry] `OrchestrationConfigClient` and `PromptClient` were reworked into unified `PromptRegistryClient`, see migration guide below for additional information +- [Orchestration] Removed deprecated models: + - ibm--granite-13b-chat + - mistralai--mistral-large-instruct + - mistralai--mistral-small-instruct + - mistralai--mixtral-8x7b-instruct-v01 + - meta--llama3-70b-instruct + - meta--llama3.1-70b-instruct + - anthropic--claude-3-sonnet + - anthropic--claude-3-haiku + - anthropic--claude-3-opus + - anthropic--claude-3.5-sonnet + - anthropic--claude-3.7-sonnet + - anthropic--claude-4-sonnet + - amazon--titan-text-lite + - amazon--titan-text-express + - gpt-35-turbo + - gpt-35-turbo-16k + - gpt-35-turbo-0125 + - gpt-4 + - gpt-4-32k + - gpt-4-0613 + - gpt-4o-mini + - o1 + - o3-mini + - gemini-1.0-pro + - gemini-1.5-pro + - gemini-1.5-flash + - gemini-2.0-flash + - gemini-2.0-flash-lite + - alephalpha-pharia-1-7b-control + - deepseek-ai--deepseek-r1 +- [OpenAi] Removed deprecated models: + - dall-e-3 + - gpt-35-turbo + - gpt-35-turbo-0125 + - gpt-35-turbo-16k + - gpt-4 + - gpt-4-32k + - gpt-4o-mini + - o3-mini + - o1 + - text-embedding-ada-002 #### Prompt registry client Migration Guide From 786a2846f9ad0918b0b18c25719b31ddf4d374f5 Mon Sep 17 00:00:00 2001 From: Vladimir Aseev Date: Thu, 24 Sep 2026 17:08:16 +0200 Subject: [PATCH 3/5] fix e2e test --- .../sap/ai/sdk/app/controllers/ScenarioTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java b/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java index dc5e81b80..42a6eaed1 100644 --- a/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java +++ b/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java @@ -28,10 +28,12 @@ void openAiModelAvailability() { // Gather AI Core's list of available OpenAI models val aiModelList = new ScenarioController().getModels().getResources(); + val servedDeprecatedModels = Set.of("o1", "o3-mini", "gpt-4o-mini", "text-embedding-ada-002"); val availableOpenAiModels = aiModelList.stream() .filter(model -> model.getExecutableId().equals("azure-openai")) + .filter(aiModelBaseData -> !servedDeprecatedModels.contains(aiModelBaseData.getModel())) .collect( () -> new HashMap(), (list, model) -> list.put(model.getModel(), isDeprecated(model)), @@ -77,6 +79,17 @@ void orchestrationAiModelAvailability() { val internalOnlyModels = Set.of("abap-codestral", "abap-starcoder2-7b", "qwen3.8-27b-dev-preview"); + val servedDeprecatedModels = + Set.of( + "mistralai--mistral-small-instruct", + "anthropic--claude-4-sonnet", + "gpt-4o-mini", + "o1", + "anthropic--claude-3-haiku", + "mistralai--mistral-large-instruct", + "o3-mini" + ); + val availableOrchestrationModels = aiModelList.stream() .filter( @@ -85,6 +98,7 @@ void orchestrationAiModelAvailability() { .anyMatch(scenario -> scenario.getScenarioId().equals("orchestration"))) .filter(model -> !model.getModel().contains("embed")) .filter(model -> !internalOnlyModels.contains(model.getModel())) + .filter(model -> !servedDeprecatedModels.contains(model.getModel())) .collect( () -> new HashMap(), (list, model) -> list.put(model.getModel(), isDeprecated(model)), From 0ffc3464c1c4c942612a5b314f2f27def9d23d63 Mon Sep 17 00:00:00 2001 From: SAP Cloud SDK Bot Date: Thu, 24 Sep 2026 15:09:32 +0000 Subject: [PATCH 4/5] Formatting --- .../ai/sdk/app/controllers/ScenarioTest.java | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java b/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java index 42a6eaed1..22fcff899 100644 --- a/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java +++ b/sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/controllers/ScenarioTest.java @@ -33,7 +33,7 @@ void openAiModelAvailability() { val availableOpenAiModels = aiModelList.stream() .filter(model -> model.getExecutableId().equals("azure-openai")) - .filter(aiModelBaseData -> !servedDeprecatedModels.contains(aiModelBaseData.getModel())) + .filter(aiModelBaseData -> !servedDeprecatedModels.contains(aiModelBaseData.getModel())) .collect( () -> new HashMap(), (list, model) -> list.put(model.getModel(), isDeprecated(model)), @@ -81,14 +81,13 @@ void orchestrationAiModelAvailability() { val servedDeprecatedModels = Set.of( - "mistralai--mistral-small-instruct", - "anthropic--claude-4-sonnet", - "gpt-4o-mini", - "o1", - "anthropic--claude-3-haiku", - "mistralai--mistral-large-instruct", - "o3-mini" - ); + "mistralai--mistral-small-instruct", + "anthropic--claude-4-sonnet", + "gpt-4o-mini", + "o1", + "anthropic--claude-3-haiku", + "mistralai--mistral-large-instruct", + "o3-mini"); val availableOrchestrationModels = aiModelList.stream() From e3000fbff4e36d96c92419f93e5f0c25f679037f Mon Sep 17 00:00:00 2001 From: Vladimir Aseev Date: Fri, 25 Sep 2026 10:53:38 +0200 Subject: [PATCH 5/5] polish release notes style --- docs/release_notes.md | 80 +++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/docs/release_notes.md b/docs/release_notes.md index 98a38157e..6978e061b 100644 --- a/docs/release_notes.md +++ b/docs/release_notes.md @@ -13,47 +13,47 @@ - [Prompt Registry] `OrchestrationConfigClient` and `PromptClient` were reworked into unified `PromptRegistryClient`, see migration guide below for additional information - [Orchestration] Removed deprecated models: - - ibm--granite-13b-chat - - mistralai--mistral-large-instruct - - mistralai--mistral-small-instruct - - mistralai--mixtral-8x7b-instruct-v01 - - meta--llama3-70b-instruct - - meta--llama3.1-70b-instruct - - anthropic--claude-3-sonnet - - anthropic--claude-3-haiku - - anthropic--claude-3-opus - - anthropic--claude-3.5-sonnet - - anthropic--claude-3.7-sonnet - - anthropic--claude-4-sonnet - - amazon--titan-text-lite - - amazon--titan-text-express - - gpt-35-turbo - - gpt-35-turbo-16k - - gpt-35-turbo-0125 - - gpt-4 - - gpt-4-32k - - gpt-4-0613 - - gpt-4o-mini - - o1 - - o3-mini - - gemini-1.0-pro - - gemini-1.5-pro - - gemini-1.5-flash - - gemini-2.0-flash - - gemini-2.0-flash-lite - - alephalpha-pharia-1-7b-control - - deepseek-ai--deepseek-r1 + - `OrchestrationAiModel.IBM_GRANITE_13B_CHAT` + - `OrchestrationAiModel.MISTRAL_LARGE_INSTRUCT` + - `OrchestrationAiModel.MISTRAL_SMALL_INSTRUCT` + - `OrchestrationAiModel.MIXTRAL_8X7B_INSTRUCT_V01` + - `OrchestrationAiModel.LLAMA3_70B_INSTRUCT` + - `OrchestrationAiModel.LLAMA3_1_70B_INSTRUCT` + - `OrchestrationAiModel.CLAUDE_3_SONNET` + - `OrchestrationAiModel.CLAUDE_3_HAIKU` + - `OrchestrationAiModel.CLAUDE_3_OPUS` + - `OrchestrationAiModel.CLAUDE_3_5_SONNET` + - `OrchestrationAiModel.CLAUDE_3_7_SONNET` + - `OrchestrationAiModel.CLAUDE_4_SONNET` + - `OrchestrationAiModel.TITAN_TEXT_LITE` + - `OrchestrationAiModel.TITAN_TEXT_EXPRESS` + - `OrchestrationAiModel.GPT_35_TURBO` + - `OrchestrationAiModel.GPT_35_TURBO_16K` + - `OrchestrationAiModel.GPT_35_TURBO_0125` + - `OrchestrationAiModel.GPT_4` + - `OrchestrationAiModel.GPT_4_32K` + - `OrchestrationAiModel.GPT_4_0613` + - `OrchestrationAiModel.GPT_4O_MINI` + - `OrchestrationAiModel.OPENAI_O1` + - `OrchestrationAiModel.OPENAI_O3_MINI` + - `OrchestrationAiModel.GEMINI_1_0_PRO` + - `OrchestrationAiModel.GEMINI_1_5_PRO` + - `OrchestrationAiModel.GEMINI_1_5_FLASH` + - `OrchestrationAiModel.GEMINI_2_0_FLASH` + - `OrchestrationAiModel.GEMINI_2_0_FLASH_LITE` + - `OrchestrationAiModel.ALEPHALPHA_PHARIA_1_7B_CONTROL` + - `OrchestrationAiModel.DEEPSEEK_R1` - [OpenAi] Removed deprecated models: - - dall-e-3 - - gpt-35-turbo - - gpt-35-turbo-0125 - - gpt-35-turbo-16k - - gpt-4 - - gpt-4-32k - - gpt-4o-mini - - o3-mini - - o1 - - text-embedding-ada-002 + - `OpenAiModel.DALL_E_3` + - `OpenAiModel.GPT_35_TURBO` + - `OpenAiModel.GPT_35_TURBO_1025` + - `OpenAiModel.GPT_35_TURBO_16K` + - `OpenAiModel.GPT_4` + - `OpenAiModel.GPT_4_32K` + - `OpenAiModel.GPT_4O_MINI` + - `OpenAiModel.O3_MINI` + - `OpenAiModel.O1` + - `OpenAiModel.TEXT_EMBEDDING_ADA_002` #### Prompt registry client Migration Guide