Repository navigation
Conversation
The flag shipped in the config struct and both config templates without any narrative docs. Document the availability default on the virtual models page and in the advanced configuration reference, contrasted with the listing-only alias flag.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
A redirect resolves by its own enabled flag, but the resolved target is validated like a direct call. With the availability default off, the target needs its own access entry.
|
@forge-orion review |
WalkthroughThis PR closes a documentation gap:
|
| Dimension | Rating |
|---|---|
| Correctness | 10/10 — every claim verified against source |
| Completeness | 9/10 — covers both docs surfaces and the contrast with the listing-only flag |
| Risk | 10/10 — docs-only, zero behavior change |
| Tests | 9/10 — no test needed for docs; existing config test at config/config_test.go:1021 exercises the env var |
| Docs quality | 9/10 — clear, cross-linked; minor wording nit |
| CI | 10/10 — all checks green |
| Scope discipline | 10/10 — exactly the gap the PR claims to close, nothing else |
| Convention | 8/10 — title follows docs: conventional-commit form; draft state is appropriate for a docs pass |
forge-orion
left a comment
There was a problem hiding this comment.
Inline review
Line-level findings on the diff:
docs/features/virtual-models.mdx:311-313
With the default off, a provider model stays unavailable until an entry matches it. An entry with empty
targetsis enough — it acts as a pure access rule (enabled: true, optionally withuser_paths).
Suggestion: "With the default flipped to false," removes ambiguity vs. "off" (which could also describe a disabled redirect).
docs/advanced/configuration.mdx:477-479
The KEEP_ONLY_ALIASES_AT_MODELS_ENDPOINT sentence and the sentence above it are one dense paragraph. Splitting after the 400 model_access_denied sentence would let the listing-only contrast stand on its own and improve scan-ability.
No correctness findings. Documented env names, YAML keys, defaults, and error codes all verified against source. See the walkthrough comment for the line-by-line verification.
TL;DR
MODELS_ENABLED_BY_DEFAULTexists inconfig/models.go,.env.template, andconfig.example.yaml, but no narrative docs page mentions it. This PRdocuments the availability default on the Virtual Models page and in the
advanced configuration reference, including the contrast with the listing-only
KEEP_ONLY_ALIASES_AT_MODELS_ENDPOINT.This PR description was generated with AI assistance.