Repository navigation
Refresh non-OpenAI provider integrations - #171
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe change updates OpenRouter web-search handling, adds provider models and tests, validates Google Speech-to-Text duration, selects the ChangesOpenRouter tool flow
Provider model catalog updates
Google Speech-to-Text validation
Dependency update
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant createOpenRouterResponse
participant OpenRouterClient
participant openrouter_web_search
createOpenRouterResponse->>OpenRouterClient: send configured model and max_tool_calls 1
OpenRouterClient->>openrouter_web_search: invoke server-side web search
openrouter_web_search-->>OpenRouterClient: return search results
OpenRouterClient-->>createOpenRouterResponse: return model response
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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 `@src/services/apiService.ts`:
- Line 448: Update the speech recognition flow around the latest_short model to
enforce a maximum segment duration before calling synchronous Google STT. Reject
or reroute segments exceeding the 60-second limit through the supported
long-form asynchronous path, while preserving latest_short for short utterances.
In `@src/services/llmProviders/__tests__/tools.test.ts`:
- Around line 49-58: Update the test setup around settingsStore and
buildToolsForProvider to add the legacy perform_web_search tool to
assistantTools before building the tools. Keep the existing OpenRouter
assertions, ensuring the negative assertion verifies filtering rather than
absence from configuration.
🪄 Autofix
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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: a03cb3e8-cdae-464f-b2b0-d471f42d65c7
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (10)
package.jsonsrc/services/apiService.tssrc/services/llmProviders/__tests__/minimax.test.tssrc/services/llmProviders/__tests__/openAICompatible.test.tssrc/services/llmProviders/__tests__/openrouter.test.tssrc/services/llmProviders/__tests__/providerCatalog.test.tssrc/services/llmProviders/__tests__/tools.test.tssrc/services/llmProviders/openrouter.tssrc/services/llmProviders/providerCatalog.tssrc/services/llmProviders/tools.ts
What changed
:onlinesuffix with theopenrouter:web_searchserver tool, capped at one tool call per request.latest_shortmodel for short voice inputs.groq-sdkto 1.5.0.Why
Keeps provider catalogs, APIs, and SDKs aligned with their supported integrations while maintaining predictable OpenRouter web-search cost and latency.
Validation
npm test— 126 tests passednpx vue-tsc --noEmitnpm run build:webgit diff --checkSummary by CodeRabbit
New Features
Bug Fixes