8000 refactor(anaconda-ai): repoint model-data to /models v3 by anaconda-pjohnson · Pull Request #136 · anaconda/anaconda-ai · GitHub
[go: up one dir, main page]

Skip to content

refactor(anaconda-ai): repoint model-data to /models v3 - #136

Draft
anaconda-pjohnson wants to merge 2 commits into
mainfrom
AISAGE-381/remove_self_hosted
Draft

anaconda-pjohnson wants to merge 2 commits into
mainfrom
AISAGE-381/remove_self_hosted

Conversation

@anaconda-pjohnson
Copy link
Copy Markdown

AISAGE-381 — remove self-hosted model-catalog endpoint calls

Part of the effort to strip self-hosted-only features from the model-catalog service (anaconda/ai-core). This PR removes/repoints anaconda-ai's calls to the self-hosted-only endpoints.

Endpoints affected

  • GET /org/models/model-data — legacy "policy view" -> repointed to GET /models version:3
  • GET /org/models/admin/pending-delta
  • POST /org/models/admin/download-complete
  • POST /org/models/admin/new-metadata
  • POST /org/models/admin/refresh-metadata
  • GET/POST /org/models/admin/autosync-settings
  • GET/POST /org/models/admin/rulesets
  • GET /org/models/admin/list-policies
  • POST /org/models/admin/sync-now
  • POST /org/models/admin/stop-sync
  • GET /org/models/admin/sync-history
  • GET /org/models/admin/sync-logs/{id}
  • GET/DELETE /org/servers/logs/{id}
  • POST /models (import)

Changes

Repointed AICatalystClient.models.list (src/anaconda_ai/clients/ai_catalyst.py) from GET /api/ai/model/org/models/model-data to GET /models v3, pinning X-Anaconda-Api-Version: 3 and paging (limit=1000/offset) since v3 paginates. Added test coverage. 3 files.

Notes / gaps

  • Policy metadata is preserved (/models v3 shares the PublishedModelV3 contract and applies policy in self-hosted mode) -> no TODO needed.
  • v3 adds a download_url field the SDK ignores (benign superset).
  • This client is consumed by anaconda-ai-models-sagemaker-deploy; that repo needs no change once this ships.

Per-repo analysis: docs/aisage-381-remove-self-hosted-endpoints.md (added in this PR).

Opened as a draft.

This branch has not been deployed

No deployments
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.

1 participant

0