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

Conversation

@vansangpfiev
Copy link
Contributor

Describe Your Changes

This pull request includes changes to improve URL validation in the ModelService class within the engine/services/model_service.cc file. The primary focus is on enhancing error messages to provide clearer guidance on valid URL formats.

Improvements to URL validation:

  • cpp::result<DownloadTask, std::string> ModelService::HandleDownloadUrlAsync: Enhanced error message to include a valid URL example when the URL is invalid or has insufficient path parameters.
  • cpp::result<DownloadTask, std::string> ModelService::HandleDownloadUrlAsync: Removed redundant URL validation check for the number of path parameters.
  • cpp::result<ModelPullInfo, std::string> ModelService::GetModelPullInfo: Enhanced error message to include a valid URL example when the URL is invalid or has insufficient path parameters.

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

@vansangpfiev vansangpfiev requested a review from gau-nernst March 18, 2025 07:36
@vansangpfiev vansangpfiev merged commit 948396b into dev Mar 19, 2025
8 checks passed
@vansangpfiev vansangpfiev deleted the s/fix/pull branch March 19, 2025 02:50
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.

4 participants