mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #1301 from zgce/release
fix the deeplx for chinese parameter
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user