Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README to Remove Deprecated Names #449

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Update README to Remove Deprecated Names #449

merged 1 commit into from
Aug 14, 2024

Conversation

davidvonthenen
Copy link
Contributor

@davidvonthenen davidvonthenen commented Aug 7, 2024

Proposed changes

Updates the README to reference the most recent class/function name.

Types of changes

What types of changes does your code introduce to the community Python SDK?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update or tests (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have lint'ed all of my code using repo standards
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

NA

Summary by CodeRabbit

  • New Features
    • Updated interaction methods for the Deepgram API, transitioning to enhanced endpoints for both prerecorded audio processing and live audio streaming.
  • Bug Fixes
    • Resolved issues related to audio processing by implementing new API endpoints, improving overall performance and reliability.
  • Documentation
    • Updated the README to reflect changes in API usage and interaction methods.

Copy link
Contributor

coderabbitai bot commented Aug 7, 2024

Walkthrough

The recent updates to the Deepgram API integration significantly alter how developers interact with both prerecorded and live audio. The transcribe_url method now utilizes the rest endpoint instead of the previous prerecorded endpoint, reflecting improvements in processing capabilities. Additionally, live audio streaming has transitioned from the live endpoint to a more advanced websocket endpoint, enhancing real-time communication. These changes indicate a modernization of API functionality aimed at improving performance and user experience.

Changes

Files Change Summary
README.md Updated transcribe_url from prerecorded to rest endpoint; changed live connection from live to websocket.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (2)
README.md (2)

102-102: Update all references to the live endpoint to use the websocket endpoint.

The following locations still contain references to the deprecated live endpoint:

  • tests/expected_failures/exercise_timeout/sync/main.py
  • tests/edge_cases/reconnect_same_object/sync/main.py
  • tests/edge_cases/auto_flush/microphone_mute/main.py
  • tests/edge_cases/auto_flush/async_microphone_mute/main.py
  • tests/edge_cases/reconnect_same_object/async/main.py
  • tests/expected_failures/exercise_timeout/async/main.py
  • tests/edge_cases/keepalive/async/main.py
  • tests/edge_cases/keepalive/sync/main.py
  • examples/advanced/websocket/mute-microphone/main.py

Ensure these references are updated to use the websocket endpoint to maintain consistency and avoid using deprecated methods.

Analysis chain

LGTM! But verify the usage of the websocket endpoint in the codebase.

The change from live to websocket endpoint is approved.

However, ensure that all references to the live endpoint are updated to websocket in the codebase.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `live` endpoint are updated to `websocket`.

# Test: Search for the `live` endpoint. Expect: No occurrences of the `live` endpoint.
rg --type python -A 5 $'live'

Length of output: 59


Script:

#!/bin/bash
# Description: Verify all references to the `live` endpoint are updated to `websocket`.

# Test: Search for the `live` endpoint. Expect: No occurrences of the `live` endpoint.
rg -A 5 'live'

Length of output: 84270


91-91: Issues Found:

The term prerecorded still appears in multiple files, indicating that not all references have been updated to use the rest endpoint. Please update the following files:

  • README.md
  • examples/analyze/legacy_dict_intent/main.py
  • examples/advanced/README.md
  • examples/advanced/rest/direct_invocation/main.py
  • examples/analyze/topic/main.py
  • examples/analyze/summary/main.py
  • examples/analyze/intent/main.py
  • examples/README.md
  • examples/analyze/stream_intent/main.py
  • examples/analyze/sentiment/main.py
  • deepgram/__init__.py
  • deepgram/client.py
  • deepgram/clients/speak_router.py
  • deepgram/clients/listen_router.py
  • deepgram/clients/listen/v1/rest/response.py
  • deepgram/clients/__init__.py

Please ensure all references to prerecorded are updated to rest.

Analysis chain

LGTM! But verify the usage of the rest endpoint in the codebase.

The change from prerecorded to rest endpoint is approved.

However, ensure that all references to the prerecorded endpoint are updated to rest in the codebase.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all references to the `prerecorded` endpoint are updated to `rest`.

# Test: Search for the `prerecorded` endpoint. Expect: No occurrences of the `prerecorded` endpoint.
rg --type python -A 5 $'prerecorded'

Length of output: 66


Script:

#!/bin/bash
# Description: Verify all references to the `prerecorded` endpoint are updated to `rest`.

# Test: Search for the `prerecorded` endpoint. Expect: No occurrences of the `prerecorded` endpoint.
rg -A 5 'prerecorded'

Length of output: 14912

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 78ec6d9 and 7fa3e84.

Files selected for processing (1)
  • README.md (2 hunks)

@davidvonthenen davidvonthenen merged commit 47756df into deepgram:main Aug 14, 2024
3 checks passed
@davidvonthenen davidvonthenen deleted the fix-readme-deprecated-code branch August 14, 2024 19:58
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.

2 participants