feat(pricing): add OpenCode Go model entries to catalog#7
Merged
Conversation
Adds 14 OpenCode Go model slugs to the bundled LiteLLM-derived pricing catalog. OpenCode's curated set isn't in upstream LiteLLM yet (their slugs lag releases by a few weeks), so we use sibling-family rates as documented approximations: glm-5.1, glm-5 from baseten/zai-org/GLM-5 ($0.95 / $3.15 per M) kimi-k2.6, kimi-k2.5 from bedrock/moonshotai.kimi-k2.5 ($0.60 / $3.03) minimax-m2.7, m2.5 from bedrock/minimax.minimax-m2.5 ($0.36 / $1.44) deepseek-v4-pro, flash from azure_ai/deepseek-v3.2 ($0.58 / $1.68) qwen3.5/3.6-plus from bedrock/qwen.qwen3-coder-next ($0.60 / $1.50) mimo-v2-pro/omni/2.5/2.5-pro from openrouter/xiaomi/mimo-v2-flash ($0.09 / $0.29) Keys are prefixed `opencode/<slug>` to group with the rest of the provider's catalog, mirroring how mistral/groq entries are stored. The catalog's existing prefix-strip during lookup still resolves the bare slug. Cost reported is the upstream-equivalent value, not what the user actually pays — OpenCode Go is a flat-rate $10/mo plan. Useful for tracking the $60/mo cap consumption and comparing against direct provider pricing. Users / docs should call this out as approximate. Test plan: cargo test -p keplor-pricing — 12 passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 14 OpenCode Go model slugs to the bundled LiteLLM-derived pricing catalog. OpenCode's curated set isn't in upstream LiteLLM yet (their slugs lag releases by a few weeks), so we use sibling-family rates as documented approximations.
Keys are prefixed `opencode/` to group with the rest of the provider's catalog, mirroring how mistral/groq entries are stored. The catalog's existing prefix-strip during lookup resolves the bare slug.
Cost reported is upstream-equivalent value, not what the user actually pays — OpenCode Go is a flat-rate $10/mo plan. Useful for tracking $60/mo cap consumption and comparing against direct-provider pricing. Obol's docs will call this out as approximate.
Test plan