Skip to content

Refresh non-OpenAI provider integrations - #171

Merged
pmbstyle merged 2 commits into
mainfrom
agent/refresh-provider-integrations
Aug 5, 2026
Merged

pmbstyle merged 2 commits into
mainfrom
agent/refresh-provider-integrations

Conversation

@pmbstyle

@pmbstyle pmbstyle commented Aug 4, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • Add GLM-5.2 as the Z.ai default and expose MiniMax M2.5 variants.
  • Replace OpenRouter's deprecated :online suffix with the openrouter:web_search server tool, capped at one tool call per request.
  • Use Google Speech-to-Text's latest_short model for short voice inputs.
  • Upgrade groq-sdk to 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 passed
  • Focused OpenRouter test passed
  • npx vue-tsc --noEmit
  • npm run build:web
  • git diff --check

Summary by CodeRabbit

  • New Features

    • Added support for MiniMax M2.5 and M2.5 Highspeed models.
    • Updated Z.ai’s default model to GLM-5.2.
    • OpenRouter now uses built-in web search for current information.
    • Limited OpenRouter web-search tool calls for improved response control.
    • Speech recognition now uses the latest short-form recognition model.
  • Bug Fixes

    • Prevented legacy web-search tools from being exposed alongside OpenRouter search.
    • Recordings longer than 60 seconds are now rejected before transcription.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5b2594d2-2f22-4a21-9029-06f350df80da

📥 Commits

Reviewing files that changed from the base of the PR and between 437304c and e9c4053.

📒 Files selected for processing (3)
  • src/services/__tests__/apiService.test.ts
  • src/services/apiService.ts
  • src/services/llmProviders/__tests__/tools.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/services/llmProviders/tests/tools.test.ts

📝 Walkthrough

Walkthrough

The change updates OpenRouter web-search handling, adds provider models and tests, validates Google Speech-to-Text duration, selects the latest_short model, and updates the groq-sdk version constraint.

Changes

OpenRouter tool flow

Layer / File(s) Summary
OpenRouter request construction
src/services/llmProviders/openrouter.ts, src/services/llmProviders/__tests__/openrouter.test.ts
Requests use the configured model, require the OpenRouter web-search tool, and limit tool calls to one.
OpenRouter tool filtering
src/services/llmProviders/tools.ts, src/services/llmProviders/__tests__/tools.test.ts
Filtering removes legacy search tools and adds openrouter:web_search. Tests verify this tool set.

Provider model catalog updates

Layer / File(s) Summary
Provider model catalogs and resolution
src/services/llmProviders/providerCatalog.ts, src/services/llmProviders/__tests__/providerCatalog.test.ts, src/services/llmProviders/__tests__/minimax.test.ts, src/services/llmProviders/__tests__/openAICompatible.test.ts
Z.ai uses glm-5.2. MiniMax exposes both M2.5 variants. Tests update defaults, recognized models, sorting, and fallback behavior.

Google Speech-to-Text validation

Layer / File(s) Summary
WAV duration validation
src/services/apiService.ts, src/services/__tests__/apiService.test.ts
Synchronous Google recognition rejects WAV recordings longer than 60 seconds and uses the latest_short model.

Dependency update

Layer / File(s) Summary
Groq SDK constraint
package.json
The groq-sdk constraint changes to ^1.5.0.

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
Loading

Possibly related PRs

  • pmbstyle/Alice#170: Both changes modify src/services/apiService.ts for speech-related behavior, but they target different APIs.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes to non-OpenAI provider integrations and is concise.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/refresh-provider-integrations

Comment @coderabbitai help to get the list of available commands.

@socket-security

socket-security Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​groq-sdk@​1.3.0 ⏵ 1.5.08310010098 +2100

View full report

@pmbstyle pmbstyle self-assigned this Aug 5, 2026
@pmbstyle
pmbstyle marked this pull request as ready for review August 5, 2026 11:17

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 69c6d83 and 437304c.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (10)
  • package.json
  • src/services/apiService.ts
  • src/services/llmProviders/__tests__/minimax.test.ts
  • src/services/llmProviders/__tests__/openAICompatible.test.ts
  • src/services/llmProviders/__tests__/openrouter.test.ts
  • src/services/llmProviders/__tests__/providerCatalog.test.ts
  • src/services/llmProviders/__tests__/tools.test.ts
  • src/services/llmProviders/openrouter.ts
  • src/services/llmProviders/providerCatalog.ts
  • src/services/llmProviders/tools.ts

Comment thread src/services/apiService.ts Resolved
@pmbstyle
pmbstyle merged commit aaace47 into main Aug 5, 2026
5 checks passed
@pmbstyle
pmbstyle deleted the agent/refresh-provider-integrations branch August 5, 2026 12:05
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.

1 participant