( model: ManagedKimiCodeModelInfo | undefined, fallback: boolean, )
| 648 | // must never end up with thinking off, and a non-thinking model ('no') must |
| 649 | // never end up with thinking on. |
| 650 | function forcedThinking( |
| 651 | model: ManagedKimiCodeModelInfo | undefined, |
| 652 | fallback: boolean, |
| 653 | ): boolean { |
| 654 | if (model?.supportsThinkingType === 'only') return true; |
| 655 | if (model?.supportsThinkingType === 'no') return false; |
| 656 | return fallback; |
| 657 | } |
| 658 | |
| 659 | function selectDefaultModel( |
| 660 | config: ManagedKimiConfigShape, |
no outgoing calls
no test coverage detected