docs: FAQ entry for custom model pricing in agentic workflow frontmatter#44450
Merged
Conversation
…l-inventory example - Add "How do I supply pricing for a custom or private model?" to the Costs & Usage section of faq.md, covering the models.providers YAML syntax, per-token cost format, engine-to-provider mapping, and merge behavior - Add models.providers example to daily-model-inventory.md frontmatter to demonstrate the feature and ensure it compiles correctly Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
July 9, 2026 02:23
View session
pelikhan
approved these changes
Jul 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds missing documentation for models.providers so users can supply or override per-token pricing when a model is absent from the embedded models.dev catalog, and includes a workflow frontmatter example to demonstrate compilation/propagation into GH_AW_INFO_MODEL_COSTS.
Changes:
- Documented
models.providersusage and structure in the FAQ, including provider-key mapping and merge behavior. - Added a
models.providersexample block todaily-model-inventory.mdfrontmatter. - Regenerated the compiled
.lock.ymlto include the serializedGH_AW_INFO_MODEL_COSTSoverlay.
Show a summary per file
| File | Description |
|---|---|
| docs/src/content/docs/reference/faq.md | Adds an FAQ entry explaining how to supply custom model pricing via models.providers. |
| .github/workflows/daily-model-inventory.md | Adds a frontmatter models.providers example to demonstrate custom pricing overlays. |
| .github/workflows/daily-model-inventory.lock.yml | Updates compiled metadata/env to reflect the new frontmatter overlay. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 3
- Review effort level: Low
| cache_write: "3.75e-06" # optional | ||
| ``` | ||
|
|
||
| Cost values are **per-token USD in scientific notation** (e.g. `3.75e-06` = $0.00000375/token = $3.75 per million tokens). Omit `cache_read` and `cache_write` if the model doesn't support prompt caching. |
Comment on lines
+29
to
+31
| # Supply pricing for a private/enterprise model not yet in the models.dev catalog. | ||
| # Cost values are per-token USD in scientific notation (e.g. 3e-06 = $3 per million tokens). | ||
| # Entries are merged with the built-in models.json at runtime and fill gaps for unknown models. |
Comment on lines
+32
to
+36
| models: | ||
| providers: | ||
| openai: | ||
| models: | ||
| gpt-5-enterprise: |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
No documentation existed for the
models.providersfrontmatter field, leaving users without guidance on how to supply pricing for custom, private, or enterprise models missing from the models.dev catalog.Changes
docs/src/content/docs/reference/faq.md— new entry under Costs & Usage:models.providers(unknown models, pricing overrides)copilot→github-copilot,claude→anthropic, etc.).github/workflows/daily-model-inventory.md— addsmodels.providersto frontmatter as a working example:Compiles cleanly alongside the existing 259-workflow corpus (0 errors).