(context: 'warning' | 'tip')
| 33 | * Get upgrade message for different contexts |
| 34 | */ |
| 35 | export function getUpgradeMessage(context: 'warning' | 'tip'): string | null { |
| 36 | const upgrade = getAvailableUpgrade() |
| 37 | if (!upgrade) return null |
| 38 | |
| 39 | switch (context) { |
| 40 | case 'warning': |
| 41 | return `/model ${upgrade.alias}` |
| 42 | case 'tip': |
| 43 | return `Tip: You have access to ${upgrade.name} with ${upgrade.multiplier}x more context` |
| 44 | default: |
| 45 | return null |
| 46 | } |
| 47 | } |
| 48 |
no test coverage detected