fix: dict voice not exist
This commit is contained in:
@@ -196,7 +196,7 @@ export const apiTranslate = async ({
|
||||
break;
|
||||
case OPT_TRANS_GEMINI:
|
||||
trText = res?.candidates
|
||||
?.map((item) => item.content.parts.map((item) => item.text).join(" "))
|
||||
?.map((item) => item.content?.parts.map((item) => item.text).join(" "))
|
||||
.join(" ");
|
||||
isSame = text === trText;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user