mirror of
https://github.com/open-webui/open-webui
synced 2024-11-17 14:02:51 +00:00
allow version to work with -rc tag
This commit is contained in:
parent
ac294a74e7
commit
c9f17ecb3a
@ -203,7 +203,7 @@ async def get_ollama_versions(url_idx: Optional[int] = None):
|
||||
|
||||
if len(responses) > 0:
|
||||
lowest_version = min(
|
||||
responses, key=lambda x: tuple(map(int, x["version"].split(".")))
|
||||
responses, key=lambda x: tuple(map(int, x["version"].replace("-rc", ".").split(".")))
|
||||
)
|
||||
|
||||
return {"version": lowest_version["version"]}
|
||||
|
Loading…
Reference in New Issue
Block a user