Skip to content

[Feature] Add HTTP protocol support (#1738)#1739

Open
guangwang126 wants to merge 1 commit into
modelscope:masterfrom
guangwang126:Feature/http_protocol
Open

[Feature] Add HTTP protocol support (#1738)#1739
guangwang126 wants to merge 1 commit into
modelscope:masterfrom
guangwang126:Feature/http_protocol

Conversation

@guangwang126

@guangwang126 guangwang126 commented Jun 16, 2026

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the get_endpoint function to check if the domain already contains an http:// or https:// scheme before prepending the default scheme, and adds corresponding unit tests. The reviewer suggested making the scheme check case-insensitive to handle uppercase schemes (e.g., HTTP://) robustly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread modelscope/hub/utils/utils.py
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