Skip to content

fix(quickstart): a free model charges nothing for input and output on every tier - #982

Merged
Blind-Striker merged 1 commit into
masterfrom
fix/quickstart-free-model-filter
Nov 23, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
fix/quickstart-free-model-filter

Conversation

@Blind-Striker

Copy link
Copy Markdown
Collaborator

What

QuickStart's free-model filter accepted a model of opencode's own provider when only its input price was zero, and it accepted one with no listed price at all. It now applies the root README's streaming-example filter:

  • the model is on opencode's own provider;

  • its price list is not empty;

  • every tier charges nothing for input and output.

  • FreeModel.cs: the predicate becomes FreeModel.IsFree(ModelInfo), and the catalog search uses it. The retry loop around it is unchanged: the 250 ms rounds, the 30-second budget, and a startup 503 starting another round.

  • QuickStart's README says it selects "a free model from the live catalog" and doesn't state the criterion, so it is unchanged.

Tests

QuickStart has no test project, and a new one for one predicate would be out of proportion. So the playground test project references QuickStart: a ProjectReference, plus InternalsVisibleTo in QuickStart's project, the same pattern HQ uses. The tests are in QuickStart/QuickStartFreeModelTests.cs. They accept a model that charges nothing, and reject:

  • an empty price list;
  • an output price;
  • one priced tier among free ones;
  • another provider.

Red, then green:

  • with IsFree carrying the old predicate, the empty-list and output-price tests failed (2 of 5);
  • with the fix, 5 of 5 pass.

Verification

On this head, locally:

  • the build, with 0 warnings;
  • whitespace, style, Slopwatch, clones;
  • the playground tests, 125;
  • the Tools tests, 2,875, the repository guards included.

0 failed in all, and the tree is clean.

… every tier

QuickStart accepted a model of opencode's own provider when only its
input price was zero, and accepted one with no listed price at all.
It now uses the root README's filter: opencode's provider, a price
list that is not empty, and zero input and output prices on every
tier. The retry loop is unchanged.

QuickStart has no test project, so the filter is tested from the
playground test project, which now references QuickStart.
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 23, 2026
Merged via the queue into master with commit 66eac82 Nov 23, 2026
15 checks passed
@Blind-Striker
Blind-Striker deleted the fix/quickstart-free-model-filter branch November 23, 2026 16:31
@Blind-Striker Blind-Striker mentioned this pull request Nov 24, 2026
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