Repository navigation
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Add and verify deprecation warning getstream/video/__init__.py, tests/test_video_openai.py |
connect_openai documents and emits a DeprecationWarning that mentions Vision Agents. The test checks the warning while mocking the realtime-client factory. |
Priority:
Estimated code review effort: 1 (Trivial) | ~4 minutes
Change: Other
Merge Risk: 
Minimal · up to 70c08
-
The deprecated API remains functional while directing callers to Vision Agents.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Marks
Call.connect_openaideprecated: a docstring note plus aDeprecationWarning(stacklevel=2, same pattern as theStreamAPIExceptionalias ingetstream/base.py). It talks to Stream's/video/connect_agentOpenAI Realtime proxy, which is being retired: Vision Agents is now the supported way to build voice and video AI agents on Stream Video, and the OpenAI Realtime docs page already redirects to Vision Agents.test_connect_openai_emits_deprecation_warningtotests/test_video_openai.py(fails without the change).model="gpt-4o-realtime-preview"has been shut down by OpenAI; updating that default is tracked separately.connectOpenAiin stream-node, and annpm deprecateof@stream-io/openai-realtime-api.Checked:
ruff check,ruff format --check,pytest tests/test_video_openai.py(12 passed, 1 skipped withoutOPENAI_API_KEY).Linear: VID-1674
Note
Low Risk
Adds a deprecation warning and docs only; no change to connection logic or security-sensitive paths.
Overview
BaseCall.connect_openaiis now officially deprecated: the docstring includes a Sphinx.. deprecated::note, and callers get aDeprecationWarning(withstacklevel=2) pointing them to Vision Agents instead of Stream’s/video/connect_agentOpenAI Realtime proxy.Runtime behavior is unchanged—the method still wires up the realtime client and proxy as before; only the warning is new.
A test
test_connect_openai_emits_deprecation_warningasserts the warning text mentions Vision Agents, with OpenAI client setup mocked so the test stays isolated.Reviewed by Cursor Bugbot for commit 70c0858. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
connect_openainow emits a deprecation warning directing callers to Vision Agents. Its connection behavior remains unchanged.