feat(core): support splitting audio blobs before submitting to backend (#11572)

fix AF-2484
This commit is contained in:
pengx17 committed 2025-04-09 12:44:37 +00:00
1 parent ba875a120f
commit 34b6e7ef88
6 files changed
+226 -51

No files matched your search

@@ -163,7 +163,10 @@ module.exports = {
// parse 'file' fields
const containsFile = node.variableDefinitions.some(def => {
const varType = def?.type?.type?.name?.value;
const varType =
def.type.kind === 'NamedType'
? def.type.name.value
: def?.type?.type?.name?.value;
const checkContainFile = type => {
if (schema.getType(type)?.name === 'Upload') return true;
const typeDef = schema.getType(type);
@@ -612,6 +612,7 @@ export const submitAudioTranscriptionMutation = {
status
}
}`,
file: true,
};
export const claimAudioTranscriptionMutation = {