Skip to content

[Bug]: Unexpected keyword argument "mip_opt_out" #606

@hvgazula

Description

@hvgazula

Summary

Running listen/v1/media/transcribe_url/main.py

What happened?

Actual:

✅ DEEPGRAM_API_KEY found, proceeding with examples... ✨✨✨✨ Running listen/v1/media/transcribe_url/ examples ✨✨✨✨ Running listen/v1/media/transcribe_url/main.py Request sent Caught: MediaClient.transcribe_url() got an unexpected keyword argument 'mip_opt_out' 

Steps to reproduce

  1. Install deepgram-sdk=5.1.0 and other pre-requisites
  2. Changed response = client.listen.v1.media.transcribe_file(request=audio_data, model="nova-3",) to response = client.listen.v1.media.transcribe_file(request=audio_data, model="nova-3", mip_opt_out=True) in examples/listen/v1/media/transcribe_url/main.py following instructions here
  3. python examples/listen/v1/media/transcribe_url/main.py

Minimal code sample

from dotenv import load_dotenv load_dotenv() from deepgram import DeepgramClient client = DeepgramClient() try: print("Request sent") response = client.listen.v1.media.transcribe_url( model="nova-3", url="https://dpgr.am/spacewalk.wav", mip_opt_out=True ) print("Response received") except Exception as e: print(f"Caught: {e}")

Logs / traceback

Request sent Caught: MediaClient.transcribe_url() got an unexpected keyword argument 'mip_opt_out' 

Transport

HTTP

API endpoint / path

/v1/listen

Model(s) used

nova-3

How often?

Always

Is this a regression?

  • Yes, it worked in an earlier version

Last working SDK version (if known)

4.8.1

SDK version

5.1.0

Python version

3.12

Install method

None

OS

Linux (x86_64)

Environment details

 

Link to minimal repro (optional)

No response

Session ID (optional)

No response

Project ID (optional)

b94fd2c8-39c9-4f06-b594-9c9aa994f861

Request ID (optional)

No response

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions