fix(tts): sox combination order; refactor input logic flow
- Replace manual `process.stdin` listeners with `events.once()` - Switch from `process.exit()` to `return` for cleaner async execution paths - Update Node.js module imports to use default exports consistently
This commit is contained in:
parent
0e07268bfb
commit
749559e19c
2 changed files with 33 additions and 34 deletions
4
index.ts
4
index.ts
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env node
|
||||
import { parseArgs } from "node:util";
|
||||
import util from "node:util";
|
||||
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
|
||||
import { streamText } from "ai";
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ import { initConfig, loadConfig } from "./src/config";
|
|||
import { Conversation } from "./src/conversation";
|
||||
import Renderer from "./src/render";
|
||||
|
||||
const { values: args, positionals } = parseArgs({
|
||||
const { values: args, positionals } = util.parseArgs({
|
||||
args: process.argv.slice(2),
|
||||
options: {
|
||||
model: { type: "string" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue