MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getModelDeprecationWarning

Function getModelDeprecationWarning

src/utils/model/deprecation.ts:88–101  ·  view source on GitHub ↗
(
  modelId: string | null,
)

Source from the content-addressed store, hash-verified

86 * Get a deprecation warning message for a model, or null if not deprecated
87 */
88export function getModelDeprecationWarning(
89 modelId: string | null,
90): string | null {
91 if (!modelId) {
92 return null
93 }
94
95 const info = getDeprecatedModelInfo(modelId)
96 if (!info.isDeprecated) {
97 return null
98 }
99
100 return `⚠ ${info.modelName} will be retired on ${info.retirementDate}. Consider switching to a newer model.`
101}
102

Callers 2

runFunction · 0.85

Calls 1

getDeprecatedModelInfoFunction · 0.85

Tested by

no test coverage detected