* Thinking config for classifier calls. The classifier wants short text-only * responses — API thinking blocks are ignored by extractTextContent() and waste tokens. * * For most models: send { type: 'disabled' } via sideQuery's `thinking: false`. * * Models with alwaysOnThinking (declared in nc
( model: string, )
| 683 | * property-name strings don't survive minification into external builds. |
| 684 | */ |
| 685 | function getClassifierThinkingConfig( |
| 686 | model: string, |
| 687 | ): [false | undefined, number] { |
| 688 | if ( |
| 689 | isInternalBuild() && |
| 690 | resolveAntModel(model)?.alwaysOnThinking |
| 691 | ) { |
| 692 | return [undefined, 2048] |
| 693 | } |
| 694 | return [false, 0] |
| 695 | } |
| 696 | |
| 697 | /** |
| 698 | * XML classifier for auto mode security decisions. Supports three modes: |
no test coverage detected