mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-23 18:15:13 +02:00
fix: keep workload confirmations server-side
This commit is contained in:
@@ -78,10 +78,6 @@ function createSafeItoEnvironment(source = process.env, options = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
if (options.includeWorkloadConfirmation) {
|
||||
copyDefined(source, safe, "ITO_WORKLOAD_CONFIRMATION_TOKEN");
|
||||
}
|
||||
|
||||
if (options.includeControls) {
|
||||
for (const key of ECC_ITO_CONTROL_KEYS) {
|
||||
copyDefined(source, safe, key);
|
||||
@@ -106,7 +102,6 @@ function createSafeItoInvocationEnvironment(
|
||||
includeItoRuntime: ITO_RUNTIME_COMMANDS.has(command),
|
||||
includeItoApiKey: ["auth", "find", "status", "serve", "train", "workload-status", "workload-cancel", "workload-cleanup"].includes(command),
|
||||
includeItoEvals: command === "evals",
|
||||
includeWorkloadConfirmation: command === "serve" || command === "train",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user