Skip to content

Commit 85b8498

Browse files
committed
fix: code review
1 parent 520b5ed commit 85b8498

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/pyannoteai/sdk/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,11 @@ def diarize(
423423
"turnLevelConfidence": turn_level_confidence,
424424
"exclusive": exclusive,
425425
"transcription": transcription,
426-
"transcriptionConfig": transcription_config or dict(),
427426
}
428-
427+
428+
if transcription_config is not None:
429+
json["transcriptionConfig"] = transcription_config
430+
429431
# add extra arguments to the request body
430432
json.update(kwargs)
431433

0 commit comments

Comments
 (0)