Skip to content

Integrate "get model versions" and "download specific model version" into cpp Core with max_versions#816

Open
selenayang888 wants to merge 28 commits into
mainfrom
syang/integrate-get-model-versions-into-cpp
Open

Integrate "get model versions" and "download specific model version" into cpp Core with max_versions#816
selenayang888 wants to merge 28 commits into
mainfrom
syang/integrate-get-model-versions-into-cpp

Conversation

@selenayang888

Copy link
Copy Markdown
Contributor

Porting the changes "get model versions" and "download specific model version" from C# into C++ Core now:

  1. List all available versions of a model (e.g., to see what versions of phi-4 are published).
  2. Download and use a specific older version (e.g., for reproducibility, compatibility, or regression testing).

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview, Comment Jun 30, 2026 11:29pm

Request Review

@selenayang888 selenayang888 marked this pull request as ready for review June 18, 2026 01:27
Copilot AI review requested due to automatic review settings June 18, 2026 01:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot stopped reviewing on behalf of selenayang888 due to an error June 18, 2026 01:49
Comment thread sdk_v2/cpp/include/foundry_local/foundry_local_c.h Outdated
Comment thread sdk_v2/cpp/include/foundry_local/foundry_local_c.h Outdated
Comment thread sdk_v2/cpp/include/foundry_local/foundry_local_c.h Outdated
Comment thread sdk_v2/cpp/src/catalog/azure_catalog_client.cc Outdated
Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.cc Outdated
Comment thread sdk_v2/cpp/src/catalog/catalog_client.h
Comment thread sdk_v2/cpp/src/catalog/azure_catalog_client.cc
Comment thread sdk_v2/cpp/include/foundry_local/foundry_local_c.h Outdated
Comment thread sdk_v2/cpp/include/foundry_local/foundry_local_c.h
Comment thread sdk_v2/cpp/src/catalog.h Outdated
Comment thread sdk_v2/cpp/src/catalog/azure_catalog_client.cc Outdated
Comment thread sdk_v2/cpp/src/catalog/azure_catalog_client.cc
Comment thread sdk_v2/cpp/src/catalog/azure_model_catalog.cc Outdated
Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.h Outdated
Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.cc Outdated
Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.cc Outdated
Comment thread sdk_v2/cpp/src/manager.cc Outdated
Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.h
Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.cc
Comment on lines +56 to +57
/// Returns the variants (in any order; the base class sorts/indexes them)
/// for the given alias.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should automatically be sorted by AddVariant so should be in the same priority order as the model list output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the docstring since AddVariant handles ordering automatically.

Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.cc Outdated
Comment thread sdk_v2/cpp/src/catalog/base_model_catalog.cc Outdated
@skottmckay

Copy link
Copy Markdown
Collaborator

Will the other language bindings have GetModelVersions exposed in this PR or a separate one? AI should be able to handle adding that fairly easily.

@selenayang888

Copy link
Copy Markdown
Contributor Author

Will the other language bindings have GetModelVersions exposed in this PR or a separate one? AI should be able to handle adding that fairly easily.

This PR for the implementation of GetModelVersion is only for C++ Core. I think we will have separate PR for other language bindings in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants