mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2969] [Engine] expose optional pricing for client usage estimates #1193
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lindestad on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2969
Area
[Engine] (the server and API)
What do you want to do?
I run Hermes and OpenCode against Strata and want to compare their usage using the same simulated external API rates. Hermes can discover rates from the endpoint's model listing, but Strata does not publish them.
Allow an optional top-level
pricingblock in the run config and report it in/v1/modelsand/models, including aliases. The rates would follow OpenRouter's USD-per-token convention, with an optional per-request fee. Clients would calculate their own estimates. Existing configs without pricing would need no changes.What do you do today instead?
I use a local Strata patch to expose the rates to Hermes. PR #2970 contains that change, with validation, documentation and regression tests. Comparing estimates with OpenCode is my use case; this request does not assume OpenCode reads prices from
/v1/models.Re-test on 0.2.0-beta
Reproduced locally on unmodified main
e88ee39dusing the mock engine: a config with a pricing block still produces model listings without pricing. The rebased patch901c7be0publishes the configured values. Without pricing, both endpoints return byte-identical bodies to main for no config file, an empty config, a model config and aliases.Environment: CachyOS Linux x86_64, Python 3.12.14, 91 GiB RAM, NVIDIA RTX 5080 (16 GB VRAM, driver 615.78.08). These are mock-engine HTTP checks; GPU inference was not run. Current test commands and results are in PR #2970.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@lindestad commented on GitHub (Oct 19, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 19, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.