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

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

View File

@@ -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);

View File

@@ -612,6 +612,7 @@ export const submitAudioTranscriptionMutation = {
status
}
}`,
file: true,
};
export const claimAudioTranscriptionMutation = {