Skip to content

Commit 8913414

Browse files
fix(opencode-go): omit price from fallback model info
ModelInfoView renders a 0 price field as "$0.00 / 1M tokens", implying the service is free. Drop inputPrice/outputPrice from the fallback so it stays unknown until the live /v1/models list resolves, matching the fetched models which leave price fields absent. Addresses PR #319 review (edelauna, navedmerchant).
1 parent 4a4d662 commit 8913414

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/types/src/providers/opencode-go.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export const opencodeGoDefaultModelInfo: ModelInfo = {
1313
contextWindow: 200_000,
1414
supportsImages: false,
1515
supportsPromptCache: false,
16-
inputPrice: 0,
17-
outputPrice: 0,
16+
// Pricing is intentionally omitted: ModelInfoView renders a `0` field as "$0.00 / 1M tokens"
17+
// (implying the service is free), so we leave it unknown — consistent with the dynamically
18+
// fetched models, which also leave price fields absent. See PR #319 review.
1819
description: "Opencode Go plan model. Available models and metadata are resolved dynamically from /v1/models.",
1920
}
2021

0 commit comments

Comments
 (0)