Co-authored-by: Claude Opus 4.7 <[email protected]> Co-authored-by: codex <[email protected]>
14 lines
463 B
TypeScript
14 lines
463 B
TypeScript
import type { ProviderDriverKind } from "@t3tools/contracts";
|
|
|
|
/**
|
|
* Model slugs that show a gold "NEW" chip in the model picker list.
|
|
* Add entries as `provider:slug` when you want to highlight freshly shipped models.
|
|
*/
|
|
const NEW_MODEL_KEYS = new Set<string>([
|
|
// Example: "claudeAgent:claude-opus-4-7",
|
|
]);
|
|
|
|
export function isModelPickerNewModel(provider: ProviderDriverKind, slug: string): boolean {
|
|
return NEW_MODEL_KEYS.has(`${provider}:${slug}`);
|
|
}
|