init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
15
utils/immediateCommand.ts
Normal file
15
utils/immediateCommand.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { getFeatureValue_CACHED_MAY_BE_STALE } from '../services/analytics/growthbook.js'
|
||||
|
||||
/**
|
||||
* Whether inference-config commands (/model, /fast, /effort) should execute
|
||||
* immediately (during a running query) rather than waiting for the current
|
||||
* turn to finish.
|
||||
*
|
||||
* Always enabled for ants; gated by experiment for external users.
|
||||
*/
|
||||
export function shouldInferenceConfigCommandBeImmediate(): boolean {
|
||||
return (
|
||||
process.env.USER_TYPE === 'ant' ||
|
||||
getFeatureValue_CACHED_MAY_BE_STALE('tengu_immediate_model_command', false)
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue