GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: let the model pick a web search provider for a single call · Issue #65252 · anomalyco/opencode

[FEATURE]: let the model pick a web search provider for a single call #65252

New issue
Copy link
New issue
Copy link
Open
#64486
Open
[FEATURE]: let the model pick a web search provider for a single call#65252
#64486
Copy link
Labels
area/coreAgent loop, tools and configtype/featureNew behaviour or an improvementversion/v2OpenCode 2.x

Description

@TOMUIV
TOMUIV
opened on Nov 20, 2026
Issue body actions
  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The websearch tool always uses whichever provider the user saved, so the model has no way to ask for a different one for a single search. The field already exists end to end: WebSearch.Input.providerID is in the schema, the HTTP API and the plugin host. Only the model-facing tool doesn't declare it, so a provider name the model passes is silently dropped.

This matters when the selected provider is rate limited, out of credits, or lacks a key: today the model can only retry the same provider or give up, even though the session has others configured.

What I'd like: an optional providerID on the tool, with the accepted ids published in the tool schema from the live provider registry, so providers registered by plugins appear without a hardcoded list. Guardrails I'd suggest:

  • A provider the user saved still wins. A different id is refused rather than silently overriding a choice made for cost, privacy or account reasons.
  • "random", or no choice yet, leaves the pick to the model.
  • A pinned call never writes the saved default and never enters the rate-limit cooldown.
  • A saved "disabled" still refuses, so an explicit id can't reopen search the user turned off.

The change is small: one optional input plus a hook that publishes the enum.

I have an implementation with tests in #64486; happy to reshape it to whatever design you prefer, or to drop it if you'd rather keep provider choice entirely with the user.

Activity

  1. opencodejr commented on Nov 20, 2026

    @opencodejr
    opencodejrBot
    on Nov 20, 2026
    Contributor
    More actions

    Thanks for the detailed request and for the implementation in #64486!

    To restate it: you'd like the websearch tool to take an optional providerID, so the model can choose a configured provider for one call. The saved provider (or a saved "disabled") would still take priority, and a pinned call would never change the saved default.

    The code matches what you describe. The tool's input schema only declares query, but the web search service already uses a providerID when one is given instead of the saved selection. Maintainers will consider the request and the design you suggest.

    Related issues that cover nearby parts of the same problem:

    • Web search: rotate providers on quota and plan-limit failures, not only HTTP 429 #60176: switch to another provider on quota and plan-limit failures, not only HTTP 429
    • Hosted Web Search with zero balance fails with bare 402, no hint about credits and no fallback to own providers #63487: fall back to your own providers when the hosted web search has no balance
    • websearch: custom providers cannot signal rate limits — excluded from provider failover #58327: custom providers can't report a rate limit, so they're left out of failover
  2. opencodejr
    added
    area/coreAgent loop, tools and config
    type/featureNew behaviour or an improvement
    version/v2OpenCode 2.x
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreAgent loop, tools and configtype/featureNew behaviour or an improvementversion/v2OpenCode 2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.