generated from deepgram/oss-repo-template
- Notifications
You must be signed in to change notification settings - Fork 109
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Install deepgram-sdk=5.1.0 and other pre-requisites
- Changed
response = client.listen.v1.media.transcribe_file(request=audio_data, model="nova-3",)toresponse = client.listen.v1.media.transcribe_file(request=audio_data, model="nova-3", mip_opt_out=True)inexamples/listen/v1/media/transcribe_url/main.pyfollowing instructions here 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
Ben-Epstein
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working