-
Notifications
You must be signed in to change notification settings - Fork 73
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
Update README to Remove Deprecated Names #449
Conversation
WalkthroughThe recent updates to the Deepgram API integration significantly alter how developers interact with both prerecorded and live audio. The Changes
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this 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 thelive
endpoint to use thewebsocket
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
towebsocket
endpoint is approved.However, ensure that all references to the
live
endpoint are updated towebsocket
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 therest
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 torest
.Analysis chain
LGTM! But verify the usage of the
rest
endpoint in the codebase.The change from
prerecorded
torest
endpoint is approved.However, ensure that all references to the
prerecorded
endpoint are updated torest
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
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 applyChecklist
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.Further comments
NA
Summary by CodeRabbit