(model: string)
| 36 | } |
| 37 | |
| 38 | export function has1mContext(model: string): boolean { |
| 39 | if (is1mContextDisabled()) { |
| 40 | return false |
| 41 | } |
| 42 | return /\[1m\]/i.test(model) |
| 43 | } |
| 44 | |
| 45 | // @[MODEL LAUNCH]: Update this pattern if the new model supports 1M context |
| 46 | export function modelSupports1M(model: string): boolean { |
no test coverage detected