Skip to content

Commit 31bb828

Browse files
Modified model deprecation log message, added gpt4o deprecation dates and added CLEAN25 tag to older model deprecation dates
1 parent e7cc871 commit 31bb828

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/System Application/App/AI/src/Azure OpenAI/AOAIDeploymentsImpl.Codeunit.al

+12-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ codeunit 7769 "AOAI Deployments Impl"
2424
GPT4oMiniPreviewLbl: Label 'gpt-4o-mini-preview', Locked = true;
2525
DeprecatedDeployments: Dictionary of [Text, Date];
2626
DeprecationDatesInitialized: Boolean;
27-
DeprecationMessageLbl: Label 'Deployment %1 deprecated from %2. Check out codeunit 7768 AOAI Deployments', Comment = 'Telemetry message where %1 is the name of the deployment and %2 is the date of deprecation';
27+
DeprecationMessageLbl: Label 'We detected usage of the Azure OpenAI deployment "%1". This model is obsoleted starting %2 and the quality of your results might vary after that date. Check out codeunit 7768 AOAI Deployments to find the supported deployments.', Comment = 'Telemetry message where %1 is the name of the deployment and %2 is the date of deprecation';
2828
#if not CLEAN25
2929
GPT4LatestLbl: Label 'gpt-4-latest', Locked = true;
3030
GPT4PreviewLbl: Label 'gpt-4-preview', Locked = true;
@@ -33,6 +33,7 @@ codeunit 7769 "AOAI Deployments Impl"
3333
Turbo0301SaasLbl: Label 'turbo-0301', Locked = true;
3434
GPT40613SaasLbl: Label 'gpt4-0613', Locked = true;
3535
Turbo0613SaasLbl: Label 'turbo-0613', Locked = true;
36+
3637
Turbo0301Lbl: Label 'chatGPT_GPT35-turbo-0301', Locked = true;
3738
GPT40613Lbl: Label 'gpt-4-32k', Locked = true;
3839
Turbo031316kLbl: Label 'gpt-35-turbo-16k', Locked = true;
@@ -115,13 +116,19 @@ codeunit 7769 "AOAI Deployments Impl"
115116
exit;
116117

117118
// Add deprecated deployments with their deprecation dates here
119+
#if not CLEAN25
120+
DeprecatedDeployments.Add(GPT4LatestLbl, DMY2Date(1, 11, 2024));
121+
DeprecatedDeployments.Add(GPT4PreviewLbl, DMY2Date(1, 11, 2024));
122+
DeprecatedDeployments.Add(GPT35TurboLatestLbl, DMY2Date(1, 11, 2024));
123+
DeprecatedDeployments.Add(GPT35TurboPreviewLbl, DMY2Date(1, 11, 2024));
118124
DeprecatedDeployments.Add(Turbo0301SaasLbl, DMY2Date(1, 11, 2024));
119125
DeprecatedDeployments.Add(GPT40613SaasLbl, DMY2Date(1, 11, 2024));
120126
DeprecatedDeployments.Add(Turbo0613SaasLbl, DMY2Date(1, 11, 2024));
121-
DeprecatedDeployments.Add(GPT35TurboLatestLbl, DMY2Date(1, 11, 2024));
122-
DeprecatedDeployments.Add(GPT35TurboPreviewLbl, DMY2Date(1, 11, 2024));
123-
DeprecatedDeployments.Add(GPT4PreviewLbl, DMY2Date(1, 11, 2024));
124-
DeprecatedDeployments.Add(GPT4LatestLbl, DMY2Date(1, 11, 2024));
127+
#endif
128+
DeprecatedDeployments.Add(GPT4oLatestLbl, DMY2Date(13, 5, 2025));
129+
DeprecatedDeployments.Add(GPT4oPreviewLbl, DMY2Date(13, 5, 2025));
130+
DeprecatedDeployments.Add(GPT4oMiniLatestLbl, DMY2Date(18, 7, 2025));
131+
DeprecatedDeployments.Add(GPT4oMiniPreviewLbl, DMY2Date(18, 7, 2025));
125132

126133
DeprecationDatesInitialized := true;
127134
end;

0 commit comments

Comments
 (0)