From 9aab69af96eab083e0af0853427f7295f97a0c38 Mon Sep 17 00:00:00 2001 From: examples-bot Date: Mon, 6 Apr 2026 18:19:04 +0000 Subject: [PATCH] fix(examples): use keyword arg for transcribe_file in 290-aws-lambda-python-transcription MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The deepgram-sdk v6.1.1 requires `request=` as a keyword-only argument for `transcribe_file()`. The previous code passed audio bytes as a positional argument, causing a TypeError at runtime. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- examples/290-aws-lambda-python-transcription/src/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/290-aws-lambda-python-transcription/src/handler.py b/examples/290-aws-lambda-python-transcription/src/handler.py index e2c8453..c591d7c 100644 --- a/examples/290-aws-lambda-python-transcription/src/handler.py +++ b/examples/290-aws-lambda-python-transcription/src/handler.py @@ -50,7 +50,7 @@ def handler(event, context): # sent directly through API Gateway (up to ~6 MB after encoding). audio_bytes = base64.b64decode(body["audio"]) response = client.listen.v1.media.transcribe_file( - audio_bytes, + request=audio_bytes, model="nova-3", smart_format=True, tag="deepgram-examples",