jbilcke-hf HF staff commited on
Commit
8b20f19
·
1 Parent(s): de08055

improve compatibility with older clients

Browse files
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "@aitube/website",
3
- "version": "0.1.2",
4
  "private": true,
5
  "scripts": {
6
  "patch": "cp -f patch.js node_modules/fluent-ffmpeg/index.js",
 
1
  {
2
  "name": "@aitube/website",
3
+ "version": "0.1.2-0",
4
  "private": true,
5
  "scripts": {
6
  "patch": "cp -f patch.js node_modules/fluent-ffmpeg/index.js",
src/app/api/parsers/parseCompletionMode.ts CHANGED
@@ -7,7 +7,7 @@ export function parseCompletionMode(
7
  let mode = defaultMode
8
 
9
  try {
10
- let maybeMode = decodeURIComponent(`${input || ""}`).trim()
11
 
12
  if (!maybeMode) {
13
  maybeMode = defaultMode
 
7
  let mode = defaultMode
8
 
9
  try {
10
+ let maybeMode = decodeURIComponent(`${input || ""}`).trim().toUpperCase()
11
 
12
  if (!maybeMode) {
13
  maybeMode = defaultMode