Skip to content

Commit

Permalink
Make nova-2 the Default Model
Browse files Browse the repository at this point in the history
update
  • Loading branch information
davidvonthenen committed Apr 23, 2024
1 parent d7b113c commit ca22fc7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deepgram/clients/live/v1/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion deepgram/clients/prerecorded/v1/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion deepgram/clients/speak/v1/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/prerecorded/direct_invocation/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/prerecorded/async_url/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

options: PrerecordedOptions = PrerecordedOptions(
model="nova",
model="nova-2",
smart_format=True,
summarize="v2",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/prerecorded/file/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main():
}

options: PrerecordedOptions = PrerecordedOptions(
model="nova",
model="nova-2",
smart_format=True,
utterances=True,
punctuate=True,
Expand Down
2 changes: 1 addition & 1 deletion examples/prerecorded/stream_file/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():
}

options = PrerecordedOptions(
model="nova",
model="nova-2",
)

response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options)
Expand Down

0 comments on commit ca22fc7

Please sign in to comment.