Skip to content

chore: small refactor for /models/pull #2144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open

Conversation

gau-nernst
Copy link
Contributor

@gau-nernst gau-nernst commented Mar 18, 2025

Describe Your Changes

  • Move model pull logic from controller to service
  • Thanks to the above, we can make DownloadModelFromCortexsoAsync() and HandleDownloadUrlAsync() private methods
  • Add test for /models/pull with author_id:model_id:GGUF_filename format.

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@gau-nernst gau-nernst requested a review from vansangpfiev March 18, 2025 10:28
Copy link
Contributor

github-actions bot commented Mar 19, 2025

Preview URL: https://f9ad937d.cortex-docs.pages.dev

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.

2 participants