Skip to content

Commit 1920297

Browse files
authored
Merge pull request #25 from audiohacking/copilot/rename-parameters-in-acestep-tools
Rename --model → --lm and --text-encoder → --embedding in ace-* CLI invocations
2 parents b2a35ed + c6ab1dc commit 1920297

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

server/src/routes/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ router.post('/format', authMiddleware, async (req: AuthenticatedRequest, res: Re
799799
if (timeSignature) reqJson.timesignature = timeSignature;
800800
await wf(reqPath, JSON.stringify(reqJson, null, 2));
801801

802-
const args: string[] = ['--request', reqPath, '--model', config.acestep.lmModel];
802+
const args: string[] = ['--request', reqPath, '--lm', config.acestep.lmModel];
803803
const { spawn } = await import('child_process');
804804
const result = await new Promise<{ stdout: string; stderr: string; code: number }>((resolve) => {
805805
const proc = spawn(config.acestep.lmBin!, args, { shell: false, stdio: ['ignore', 'pipe', 'pipe'] });

server/src/services/acestep.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ async function runViaSpawn(
649649
const lmModel = config.acestep.lmModel;
650650
if (!lmModel) throw new Error('LM model not found — run models.sh first');
651651

652-
const lmArgs: string[] = ['--request', requestPath, '--model', lmModel];
652+
const lmArgs: string[] = ['--request', requestPath, '--lm', lmModel];
653653

654654
const batchSize = Math.min(Math.max(params.batchSize ?? 1, 1), 8);
655655
if (batchSize > 1) lmArgs.push('--batch', String(batchSize));
@@ -717,7 +717,7 @@ async function runViaSpawn(
717717

718718
const ditArgs: string[] = [
719719
'--request', ...enrichedPaths,
720-
'--text-encoder', textEncoderModel,
720+
'--embedding', textEncoderModel,
721721
'--dit', ditModel,
722722
'--vae', vaeModel,
723723
];
@@ -1209,7 +1209,7 @@ export async function runUnderstand(audioUrl: string): Promise<UnderstandResult>
12091209
'--src-audio', srcAudioPath,
12101210
'--dit', ditModel,
12111211
'--vae', vaeModel,
1212-
'--model', lmModel,
1212+
'--lm', lmModel,
12131213
'-o', outJsonPath,
12141214
];
12151215

0 commit comments

Comments
 (0)