GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||
GeezerVison is showing github.com — fix(provider): apply config model cost overrides at runtime by mollux · Pull Request #17645 · anomalyco/opencode Conversation
|
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Any chance this will be merged soon? I use API accounts directly with providers that are often missing from the standard models.dev data, and thus specify most of my model configs (and pricing info) directly in my opencode.json config. This means that OpenCode's cost estimates are wildly inaccurate for me, even though the token usage counts are correct. In this example, it appears to be pricing the cached reads at $0 even though I have the correct config for $0.06/Mtok. The 1.5M input + 68.7K output looks to equal the $0.54 total it reports, but it's missing $0.66 of cached read cost: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1873952 to
4150f92
Compare
4150f92 to
e72cdfb
Compare
|
Somehow this PR only contains a test but not real change. @mollux Can you fix this? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR has been open for nearly 4 months and is critical for anyone using custom providers (LiteLLM proxies, Chinese model providers like GLM/DeepSeek/Qwen, OpenAI-compatible endpoints). The Real-world impact: Users in China using GLM-5.2, DeepSeek V4, MiMo, etc. via The fix looks solid with test coverage. Could the maintainers prioritize reviewing and merging this? Many users are resorting to third-party plugins (opencode-throughput, opencode-tokenscope) as workarounds because the built-in cost tracking is completely broken for custom providers. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Everyone in here who is not a hallucinating bot, raise your hands. ✋ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
+1 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
+1 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
real fix here #36903 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This adds nothing, closing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Cost tracking ($ Spent) does not work for custom provider models
There was an error while loading. Please reload this page.