Skip to content

Commit

Permalink
修复分割
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed May 15, 2024
1 parent a33bf55 commit 4264286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hailuo-free-api",
"version": "0.0.9",
"version": "0.0.10",
"description": "HailuoAI Free API Server",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/api/routes/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import environment from "@/lib/environment.ts";
import core from "../controllers/core.ts";
import logger from "@/lib/logger.ts";

const REPLACE_AUDIO_MODEL_ENV = environment.envVars['REPLACE_AUDIO_MODEL'].split(",").map((v) => v.trim());
const REPLACE_AUDIO_MODEL_ENV = (environment.envVars['REPLACE_AUDIO_MODEL'] || '').split(",").map((v) => v.trim());
const VOICE_TO_MODEL_INDEX = Object.keys(modelMap["tts-1"]).reduce(
(obj, key, i) => {
obj[key] = i;
Expand Down

0 comments on commit 4264286

Please sign in to comment.