diff --git a/src/apis/index.js b/src/apis/index.js index ee11787..d60efe2 100644 --- a/src/apis/index.js +++ b/src/apis/index.js @@ -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;