fixed spacing issues-2

This commit is contained in:
sjay8
2025-03-09 14:25:45 -07:00
parent 321c3dafc0
commit fa7bd104a0
+2 -2
View File
@@ -162,8 +162,8 @@ def parse_http_spec(http_spec: str) -> LLMSpec:
# Check url validity
valid_url= urlparse(url)
#
if valid_url.scheme not in ("http", "https") or not valid_url.netloc: # if missing the correct formatting ://, urlparse.netloc will be empty
# if missing the correct formatting ://, urlparse.netloc will be empty
if valid_url.scheme not in ("http", "https") or not valid_url.netloc:
raise InvalidHTTPSpecError(f"Invalid URL: {url}. Ensure it starts with 'http://' or 'https://'")
# Initialize headers and body