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(opencode): apply config cost overrides and track usage for openai-compatible models by riley206-pnnl · Pull Request #36903 · anomalyco/opencode ConversationIssue for this PRFixes #34877 Type of change
What does this PR do?Issue: When using custom providers via Changes made: I added parsing logic inside the Why it works: This bridges the gap between the config loader and the telemetry handler. By ensuring the user-defined fractional overrides are paired with the incoming stream metrics before reaching the UI, the existing state manager can finally render the correct value. How did you verify your code works?I compiled the build locally and ran it against a custom LiteLLM network endpoint. I set custom fractional input and output costs in my Screenshots / recordings
Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
3 of 6 tasks
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not fix the reported runtime path. The PR description also says the OpenAI-compatible response handler now maps
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. [BUG] Cost tracking shows $0.00 for Chinese model providers (GLM, DeepSeek, Qwen, MiMo) via @ai-sdk/openai-compatible Token usage always shows 0 when using Zhipu Coding Plan API with @ai-sdk/openai-compatible Cost tracking shows $0.00 for custom providers using @ai-sdk/openai-compatible even when cost fields are configured Cost tracking ($ Spent) does not work for custom provider models [FEATURE]: Display token usage information in the TUIUh oh!
There was an error while loading. Please reload this page. 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. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |