Add Azure OpenAI computer-use-preview Support - #5
Conversation
📝 WalkthroughWalkthroughThe change adds Azure OpenAI as a supported provider across environment configuration, Flutter setup and storage, WebSocket session creation, dependency injection, LLM client construction, validation, documentation, and package metadata. ChangesAzure OpenAI provider support
Repository and distribution metadata
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@README.md`:
- Line 44: Update the nearby README provider summaries that currently mention
only OpenAI and Anthropic to also include Azure OpenAI, keeping the existing
wording and table entry consistent without changing unrelated documentation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c8172cb8-58e0-44f5-b449-2c777e06cdd8
⛔ Files ignored due to path filters (1)
.DS_Storeis excluded by!**/.DS_Store
📒 Files selected for processing (32)
.env.example.gitignoreREADME.mdfrontend_flutter/lib/main.dartfrontend_flutter/lib/src/app/config/app_config.dartfrontend_flutter/lib/src/app/services/api_key_validator.dartfrontend_flutter/lib/src/app/services/secure_storage_service.dartfrontend_flutter/lib/src/features/chat/presentation/widgets/chat_input_composer.dartfrontend_flutter/lib/src/presentation/settings/first_run_dialog.dartfrontend_flutter/lib/src/presentation/settings/settings_screen.dartfrontend_flutter/lib/src/presentation/settings/widgets/api_key_field.dartpackages/backend/src/os_ai_backend.egg-info/PKG-INFOpackages/backend/src/os_ai_backend.egg-info/SOURCES.txtpackages/backend/src/os_ai_backend.egg-info/requires.txtpackages/backend/src/os_ai_backend/ws.pypackages/core/src/os_ai_core.egg-info/SOURCES.txtpackages/core/src/os_ai_core.egg-info/requires.txtpackages/core/src/os_ai_core/di.pypackages/llm/src/os_ai_llm.egg-info/SOURCES.txtpackages/llm/src/os_ai_llm/config.pypackages/llm_anthropic/src/os_ai_llm_anthropic.egg-info/SOURCES.txtpackages/llm_openai/src/os_ai_llm_openai/__init__.pypackages/llm_openai/src/os_ai_llm_openai/adapters_openai.pypackages/llm_openai/src/os_ai_llm_openai/config.pypackages/os-linux/src/os_ai_os_linux.egg-info/PKG-INFOpackages/os-linux/src/os_ai_os_linux.egg-info/SOURCES.txtpackages/os-linux/src/os_ai_os_linux.egg-info/dependency_links.txtpackages/os-linux/src/os_ai_os_linux.egg-info/entry_points.txtpackages/os-linux/src/os_ai_os_linux.egg-info/requires.txtpackages/os-linux/src/os_ai_os_linux.egg-info/top_level.txtpackages/os/src/os_ai_os.egg-info/SOURCES.txttests/integration/test_openai_flow.py
| | Provider | Model | Computer Use | Status | | ||
| |----------|-------|-------------|--------| | ||
| | **OpenAI** | GPT-5.4 | Batched actions, `previous_response_id` continuity | **Fully supported** | | ||
| | **Azure OpenAI** | `computer-use-preview` deployment | Batched actions, `previous_response_id` continuity | **Supported** | |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Update the README’s other provider summaries to include Azure OpenAI.
This table now lists Azure as supported, but nearby descriptions still say the project supports only OpenAI and Anthropic. Update those summaries so users do not receive contradictory provider guidance.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@README.md` at line 44, Update the nearby README provider summaries that
currently mention only OpenAI and Anthropic to also include Azure OpenAI,
keeping the existing wording and table entry consistent without changing
unrelated documentation.
I added Azure OpenAI support for the computer-use flow, including a new azure_openai provider path that uses the Azure OpenAI SDK with the computer-use-preview deployment. The backend now accepts Azure endpoint, API key, deployment, and API version settings, and the Flutter UI was updated so users can select Azure OpenAI from Settings and First Run setup. I also updated the README and .env.example, and added a focused test for the Azure client wiring.
I also cleaned up repo hygiene by ignoring local .venv, .DS_Store, and *.egg-info files so they don’t get committed.
Summary by CodeRabbit
New Features
Documentation
Bug Fixes