fix: update custom api

This commit is contained in:
Gabe
2025-10-23 14:33:12 +08:00
parent f7ba744e7f
commit f7fc9560d5
2 changed files with 37 additions and 1 deletions

View File

@@ -847,7 +847,7 @@ export const parseTransRes = async (
}
return parseAIRes(modelMsg?.content);
case OPT_TRANS_CUSTOMIZE:
return res?.map((item) => [item.text, item.src]);
return (res?.translations ?? res)?.map((item) => [item.text, item.src]);
default:
}