From ca22fc70db6051e9879e86aaa65a889b70a591fb Mon Sep 17 00:00:00 2001 From: David vonThenen <12752197+dvonthenen@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:19:37 -0700 Subject: [PATCH] Make `nova-2` the Default Model update --- deepgram/clients/live/v1/options.py | 2 +- deepgram/clients/prerecorded/v1/options.py | 2 +- deepgram/clients/speak/v1/options.py | 2 +- examples/advanced/prerecorded/direct_invocation/main.py | 2 +- examples/prerecorded/async_url/main.py | 2 +- examples/prerecorded/file/main.py | 2 +- examples/prerecorded/stream_file/main.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deepgram/clients/live/v1/options.py b/deepgram/clients/live/v1/options.py index d7256840..35bfe4a0 100644 --- a/deepgram/clients/live/v1/options.py +++ b/deepgram/clients/live/v1/options.py @@ -58,7 +58,7 @@ class LiveOptions: default=None, metadata=config(exclude=lambda f: f is None) ) model: Optional[str] = field( - default=None, metadata=config(exclude=lambda f: f is None) + default="nova-2", metadata=config(exclude=lambda f: f is None) ) multichannel: Optional[bool] = field( default=None, metadata=config(exclude=lambda f: f is None) diff --git a/deepgram/clients/prerecorded/v1/options.py b/deepgram/clients/prerecorded/v1/options.py index c88ea17f..0a5785ed 100644 --- a/deepgram/clients/prerecorded/v1/options.py +++ b/deepgram/clients/prerecorded/v1/options.py @@ -85,7 +85,7 @@ class PrerecordedOptions: default=None, metadata=config(exclude=lambda f: f is None) ) model: Optional[str] = field( - default=None, metadata=config(exclude=lambda f: f is None) + default="nova-2", metadata=config(exclude=lambda f: f is None) ) multichannel: Optional[bool] = field( default=None, metadata=config(exclude=lambda f: f is None) diff --git a/deepgram/clients/speak/v1/options.py b/deepgram/clients/speak/v1/options.py index 781ffdf3..479a22ea 100644 --- a/deepgram/clients/speak/v1/options.py +++ b/deepgram/clients/speak/v1/options.py @@ -21,7 +21,7 @@ class SpeakOptions: """ model: Optional[str] = field( - default=None, metadata=config(exclude=lambda f: f is None) + default="aura-asteria-en", metadata=config(exclude=lambda f: f is None) ) encoding: Optional[str] = field( default=None, metadata=config(exclude=lambda f: f is None) diff --git a/examples/advanced/prerecorded/direct_invocation/main.py b/examples/advanced/prerecorded/direct_invocation/main.py index 25c82e11..90bde6ed 100644 --- a/examples/advanced/prerecorded/direct_invocation/main.py +++ b/examples/advanced/prerecorded/direct_invocation/main.py @@ -28,7 +28,7 @@ def main(): # STEP 2 Call the transcribe_url method on the prerecorded class options: PrerecordedOptions = PrerecordedOptions( - model="nova", + model="nova-2", smart_format=True, summarize="v2", ) diff --git a/examples/prerecorded/async_url/main.py b/examples/prerecorded/async_url/main.py index c59c7dff..21e928ae 100644 --- a/examples/prerecorded/async_url/main.py +++ b/examples/prerecorded/async_url/main.py @@ -16,7 +16,7 @@ } options: PrerecordedOptions = PrerecordedOptions( - model="nova", + model="nova-2", smart_format=True, summarize="v2", ) diff --git a/examples/prerecorded/file/main.py b/examples/prerecorded/file/main.py index c83e23d9..32ac818b 100644 --- a/examples/prerecorded/file/main.py +++ b/examples/prerecorded/file/main.py @@ -39,7 +39,7 @@ def main(): } options: PrerecordedOptions = PrerecordedOptions( - model="nova", + model="nova-2", smart_format=True, utterances=True, punctuate=True, diff --git a/examples/prerecorded/stream_file/main.py b/examples/prerecorded/stream_file/main.py index 5188bda9..ec6497dd 100644 --- a/examples/prerecorded/stream_file/main.py +++ b/examples/prerecorded/stream_file/main.py @@ -40,7 +40,7 @@ def main(): } options = PrerecordedOptions( - model="nova", + model="nova-2", ) response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)