@doufunao123/asset-gateway 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -977,7 +977,7 @@ function createGenerateCommand() {
977
977
  ).requiredOption("--prompt <text>", "Text to synthesize").option("--voice <name>", "Qwen voice name or custom voice id", "Cherry").option(
978
978
  "--voice-id <id>",
979
979
  "ElevenLabs voice_id (use with --provider elevenlabs; routes to TTS API)"
980
- ).option("--language <lang>", "Language hint: Auto, Chinese, English, Japanese, etc.", "Auto").option("--model <model>", "Model id (Qwen TTS or ElevenLabs model_id)", "qwen3-tts-flash").option("--instructions <text>", "Natural language speaking instructions (for instruct models)").option("--provider <id>", "qwen_tts | elevenlabs").option("--output-dir <dir>", "Directory to save output", ".").action(async function(options) {
980
+ ).option("--language <lang>", "Language hint: Auto, Chinese, English, Japanese, etc.", "Auto").option("--model <model>", "Model id (default: auto-detect from voice; qwen3-tts-flash for built-in voices)").option("--instructions <text>", "Natural language speaking instructions (for instruct models)").option("--provider <id>", "qwen_tts | elevenlabs").option("--output-dir <dir>", "Directory to save output", ".").action(async function(options) {
981
981
  try {
982
982
  const ctx = createContext(this);
983
983
  const params = {
@@ -989,9 +989,9 @@ function createGenerateCommand() {
989
989
  const body = {
990
990
  asset_type: "tts",
991
991
  prompt: options.prompt,
992
- model: options.model,
993
992
  params
994
993
  };
994
+ if (options.model) body.model = options.model;
995
995
  if (options.provider) body.provider = options.provider;
996
996
  const data = await ctx.client.post("/api/generate", body);
997
997
  const localPath = await saveOutput(data, "tts", options.outputDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doufunao123/asset-gateway",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Universal asset generation gateway CLI",
5
5
  "type": "module",
6
6
  "bin": {