Improve BYOM registration metadata defaults and ownership - #1107
Draft
Selena Yang (selenayang888) wants to merge 3 commits into
Draft
Selena Yang (selenayang888) wants to merge 3 commits into
Selena Yang (selenayang888) wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Copilot started reviewing on behalf of
Selena Yang (selenayang888)
September 15, 2026 00:16
View session
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Some supported metadata remains unresolved, authoritative prompt templates are discarded, and public API documentation is outdated.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Improves BYOM registration by resolving SDK-owned metadata from authoritative sources and preserving supported overrides.
Changes:
- Derives defaults for identity, runtime, modalities, and context length.
- Normalizes execution-provider registration names.
- Expands registration and persistence tests.
File summaries
| File | Description |
|---|---|
local_model_catalog.cc |
Resolves and persists BYOM metadata. |
local_model_catalog.h |
Extends metadata resolution with GenAI configuration. |
execution_provider.h |
Adds canonical WebGPU and Ryzen AI names. |
local_model_catalog_test.cc |
Tests defaults, ownership, and persistence. |
execution_provider_test.cc |
Tests provider-name round trips. |
c_api_test.cc |
Verifies resolved metadata through the C API. |
Review details
Suppressed comments (1)
sdk_v2/cpp/src/catalog/local_model_catalog.cc:403
- Clearing caller templates is appropriate for SDK-owned metadata, but no authoritative replacement is applied even though the parsed
genai_config.model->prompt_templatesis available. Consequently, a model that declares templates ingenai_config.jsonexposes and persists an empty prompt-template set rather than fully resolved metadata. Copy those parsed templates after discarding the caller values and add a round-trip assertion.
resolved.prompt_templates = {};
- Files reviewed: 6/6 changed files
- Comments generated: 4
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Selena Yang (selenayang888)
requested a review
from Baiju Meswani (baijumeswani)
September 16, 2026 00:19
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.
Summary
Improve BYOM registration metadata handling by applying explicit ownership rules:
task.Metadata ownership reference:
BYOM Metadata Ownership
Changes
context_lengthfromgenai_config.json.display_nameto the model name andpublishertolocal.