We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.strip()
1 parent 9fd9701 commit 582fd85Copy full SHA for 582fd85
1 file changed
weaviate/collections/classes/generative.py
@@ -37,10 +37,7 @@
37
def _parse_anyhttpurl(url: Optional[AnyHttpUrl]) -> Optional[str]:
38
if url is None:
39
return None
40
- str_ = str(url)
41
- if str_[-1] == "/":
42
- str_ = str_[:-1]
43
- return str_
+ return str(url).strip("/")
44
45
46
def _to_text_array(values: Optional[Iterable[str]]) -> Optional[TextArray]:
0 commit comments