Merge pull request #8271 from uinstinct/cli-print-mode
fix(cli): exit after printing response when using -p
This commit is contained in:
commit
7cadef6265
1 changed files with 3 additions and 0 deletions
|
|
@ -521,6 +521,9 @@ async function runHeadlessMode(
|
|||
compactionIndex = result.compactionIndex;
|
||||
}
|
||||
}
|
||||
|
||||
// exit after headless mode completes
|
||||
await gracefulExit(0);
|
||||
}
|
||||
|
||||
export async function chat(prompt?: string, options: ChatOptions = {}) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue