Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Conversation

@namchuai
Copy link
Contributor

@namchuai namchuai commented Sep 25, 2024

Describe Your Changes

  • Refactoring download service to use Result
  • Add support download model for author:model
  • Update download model, engine Http Apis

Screenshots

Screenshot 2024-09-26 at 09 37 33

CURLs for HTTP API

  1. Download cortexso
curl --location 'http://127.0.0.1:3928/models/pull' \
--header 'Content-Type: application/json' \
--data '{
    "modelId": "tinyllama:gguf"
}'
  1. Download with direct url
curl --location 'http://127.0.0.1:3928/models/pull' \
--header 'Content-Type: application/json' \
--data '{
    "modelId": "https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/blob/main/mistral-7b-instruct-v0.1.Q2_K.gguf"
}'

Fixes Issues

Self Checklist

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

@namchuai namchuai changed the title [WIP] some refactoring Add support download model for author:model Sep 26, 2024
@namchuai namchuai marked this pull request as ready for review September 26, 2024 02:17
Copy link
Contributor

@vansangpfiev vansangpfiev left a comment

Choose a reason for hiding this comment

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

Thanks for refactoring. The codebase looks much better now.

@namchuai namchuai merged commit 91a9678 into dev Sep 26, 2024
4 checks passed
@namchuai namchuai deleted the j/some-refactoring branch September 26, 2024 03:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants