Skip to content

fix(core): refine small model defaults#33926

Merged
rekram1-node merged 8 commits into
devfrom
provider-small-models
Jun 26, 2026
Merged

fix(core): refine small model defaults#33926
rekram1-node merged 8 commits into
devfrom
provider-small-models

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fall back to the active model for both Azure and Azure Cognitive Services instead of assuming a catalog small-model deployment exists
  • select inferred legacy small models only from explicit models.dev families and choose the latest release in that family
  • prioritize exact gemini-flash, gpt-nano, and claude-haiku families, plus gpt-mini for GitHub Copilot, with Haiku last
  • avoid selecting unrelated low-capacity families such as glm-flash from Vercel AI Gateway
  • preserve the existing V2 Core catalog selection algorithm, adding only the Azure provider exclusion
  • document that these provider-specific assumptions should be removed once model syncing is more reliable

The current Google Vertex adapter already combines adjacent user messages into one contents entry, so this PR leaves title message construction unchanged.

Fixes #31879

Testing

  • relying on CI for the latest changes at user request to avoid local CPU usage
  • manually confirmed the Vertex title request combines the instruction and prompt into one user content and returns HTTP 200

@rekram1-node rekram1-node merged commit ded29f0 into dev Jun 26, 2026
10 checks passed
@rekram1-node rekram1-node deleted the provider-small-models branch June 26, 2026 01:31
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.

Why the Session title Fails to Auto-Update for Vertex Models on OpenCode Desktop

1 participant