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(catalog): preserve provider capabilities on custom models by MarcTCruz · Pull Request #963 · lidge-jun/opencodex Conversation
|
📝 WalkthroughWalkthroughCustom catalog models now inherit provider capability metadata, including reasoning configuration and conditional context limits. Explicit custom context windows and input modalities remain authoritative. Tests cover metadata inheritance, vision-sidecar behavior, and catalog reasoning levels. ChangesCatalog metadata inheritance
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant gatherRoutedModels
participant ProviderRegistry
participant CatalogEntries
gatherRoutedModels->>ProviderRegistry: read provider capability hints
ProviderRegistry-->>gatherRoutedModels: return reasoning and context metadata
gatherRoutedModels->>CatalogEntries: provide merged custom model metadata
CatalogEntries-->>gatherRoutedModels: expose reasoning levels and defaults
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/catalog-custom-model-metadata.test.ts`:
- Around line 16-17: Add noReasoningModels containing "qwen-coder-3b" to the
provider fixture alongside modelReasoningEfforts in the relevant test setup.
Preserve the existing assertions that this model exposes no supported reasoning
levels and no default reasoning level, ensuring the regression path verifies
inherited noReasoningModels metadata.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 66a9e7cf-6a0b-4ce5-b2d0-c031201639dc
src/codex/catalog/provider-fetch.tstests/catalog-custom-model-metadata.test.tstests/catalog-vision-sidecar-modalities.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| modelReasoningEfforts: { "qwen-coder-3b": [] }, | ||
| }, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Cover the noReasoningModels regression path.
Line 16 sets modelReasoningEfforts to [], but this fixture does not declare noReasoningModels. A regression that stops inheriting noReasoningModels metadata can still pass.
Add noReasoningModels: ["qwen-coder-3b"] to this provider fixture. Keep the assertions for no supported reasoning levels and no default reasoning level.
Based on PR objectives: models in noReasoningModels with an empty effort list must expose neither generic reasoning levels nor a default reasoning level.
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@tests/catalog-custom-model-metadata.test.ts` around lines 16 - 17, Add
noReasoningModels containing "qwen-coder-3b" to the provider fixture alongside
modelReasoningEfforts in the relevant test setup. Preserve the existing
assertions that this model exposes no supported reasoning levels and no default
reasoning level, ensuring the regression path verifies inherited
noReasoningModels metadata.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please put your Pull-Request on Ready for Review, once you are finished. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing this in favour of #965, which fixes the same issue. Both landed within an hour of each other on #962 — that is a collision, not a fault, and the diff itself is clean work. Why #965 won, concretely. #962 is about a custom row replacing a same-slug provider-derived row. #965 inherits from the row actually being replaced, so it also retains live The part that decided it: this PR changes Verified rather than assumed — both branches were checked out and ablated. #965's ablation fails exactly one test, the #962 regression. This PR's ablation fails two, one of which is the rewritten contract above. Your implementation does handle #965 is carried in #973 (stack 6/6). Thanks for the fix, and sorry it was the duplicate. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
lidge-jun#967 found two real defects in my own lidge-jun#955 code and both verify at runtime: a Team account with a monthly window could never recover because the predicate picked its window by plan name while the parser picks by window duration, and the probe's own token refresh was mistaken for an external credential replacement. lidge-jun#963 and lidge-jun#965 both claim lidge-jun#962; lidge-jun#965 wins because it inherits from the row it actually replaces rather than recomputing config hints, and because lidge-jun#963 rewrites an existing regression contract to justify a broader change. lidge-jun#966 is a fifth design for lidge-jun#914 that survives two of the four prior falsifications but not all: mixed 5xx-then-rejection still loses the attributable failure, and five newly-classified sidecar paths keep default redirects, so a credential-visible 307 to a dead host still reads as neutral.
lidge-jun#967 found two real defects in my own lidge-jun#955 code and both verify at runtime: a Team account with a monthly window could never recover because the predicate picked its window by plan name while the parser picks by window duration, and the probe's own token refresh was mistaken for an external credential replacement. lidge-jun#963 and lidge-jun#965 both claim lidge-jun#962; lidge-jun#965 wins because it inherits from the row it actually replaces rather than recomputing config hints, and because lidge-jun#963 rewrites an existing regression contract to justify a broader change. lidge-jun#966 is a fifth design for lidge-jun#914 that survives two of the four prior falsifications but not all: mixed 5xx-then-rejection still loses the attributable failure, and five newly-classified sidecar paths keep default redirects, so a credential-visible 307 to a dead host still reads as neutral.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.