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