mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-08 07:32:34 +01:00
Merge pull request #1301 from zgce/release
fix the deeplx for chinese parameter
This commit is contained in:
commit
064d331110
@ -203,7 +203,10 @@ function registerEndpoints(app, jsonParser) {
|
||||
}
|
||||
|
||||
const text = request.body.text;
|
||||
const lang = request.body.lang;
|
||||
let lang = request.body.lang;
|
||||
if (request.body.lang === 'zh-CN') {
|
||||
lang = 'ZH'
|
||||
}
|
||||
|
||||
if (!text || !lang) {
|
||||
return response.sendStatus(400);
|
||||
|
Loading…
Reference in New Issue
Block a user