Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

fix(provider): hydrate Inception models from live /models endpoint#16461

Open
sredfern wants to merge 1 commit intoanomalyco:devfrom
sredfern:fix/inception-live-model-discovery
Open

fix(provider): hydrate Inception models from live /models endpoint#16461
sredfern wants to merge 1 commit intoanomalyco:devfrom
sredfern:fix/inception-live-model-discovery

Conversation

@sredfern
Copy link
Contributor

@sredfern sredfern commented Mar 7, 2026

Issue for this PR

Closes #16460

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes Inception model discovery after auth.

OpenCode was relying on the static models snapshot for Inception, which can miss currently supported models like mercury-2.

This patch keeps the change scoped to inception: when a key is available, provider initialization hydrates model IDs from GET /v1/models and maps those fields into OpenCode's provider model shape (name/capabilities/limits/pricing), with existing snapshot values used as fallback.

How did you verify your code works?

  • Confirmed Inception API exposes current models (including mercury-2) via GET https://api.inceptionlabs.ai/v1/models.
  • Ran provider tests locally after installing deps:
    • bun test test/provider/provider.test.ts (from packages/opencode)
    • Result: 70 pass, 0 fail.
  • Verified this PR only changes packages/opencode/src/provider/provider.ts.

Screenshots / recordings

N/A (non-UI)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions bot added contributor needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 7, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inception provider misses Mercury 2 models after auth

1 participant