Skip to content

Commit 7c68c08

Browse files
authored
dspy.Image allows gs://image_url (#8267)
1 parent 1e8d3e2 commit 7c68c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/adapters/types/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def is_url(string: str) -> bool:
7878
"""Check if a string is a valid URL."""
7979
try:
8080
result = urlparse(string)
81-
return all([result.scheme in ("http", "https"), result.netloc])
81+
return all([result.scheme in ("http", "https", "gs"), result.netloc])
8282
except ValueError:
8383
return False
8484

0 commit comments

Comments
 (0)