Skip to content

feat: migrate to Deepgram JS SDK v5 beta#13

Draft
naomi-deepgram wants to merge 1 commit intomainfrom
update/sdk-v5
Draft

feat: migrate to Deepgram JS SDK v5 beta#13
naomi-deepgram wants to merge 1 commit intomainfrom
update/sdk-v5

Conversation

@naomi-deepgram
Copy link

Summary

  • Bumps @deepgram/sdk from v3 to 5.0.0-beta.4
  • Updates all SDK call sites to the new v5 API (deepgram.listen.prerecorded.transcribeFile / transcribeUrldeepgram.listen.v1.audio.transcriptions.create, etc.)
  • Updates pnpm-lock.yaml to reflect the new dependency tree

Testing

This PR was tested thoroughly before being opened:

Automated conformance tests — run locally against a live server using the starter-contracts test suite:

  • All conformance tests pass ✅

Manual end-to-end testing — the full stack (backend + frontend) was spun up locally and tested interactively via the UI, confirming meaningful responses from the Deepgram API.

Note

This PR targets the 5.0.0-beta.4 pre-release. It will be updated to pin the stable 5.0.0 release as soon as it ships.

Update @deepgram/sdk from 4.11.3 to 5.0.0-beta.4 and migrate
API calls to the new v5 interface:
- DeepgramClient constructor instead of createClient factory
- read.v1.text.analyze instead of read.analyzeText
- Options and body merged into single request object
- Errors thrown as exceptions (no { result, error } pattern)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant