forked from open-webui/open-webui
allow version to work with -rc tag
This commit is contained in:
parent
ac294a74e7
commit
c9f17ecb3a
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ async def get_ollama_versions(url_idx: Optional[int] = None):
|
||||||
|
|
||||||
if len(responses) > 0:
|
if len(responses) > 0:
|
||||||
lowest_version = min(
|
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"]}
|
return {"version": lowest_version["version"]}
|
||||||
|
|
Loading…
Reference in a new issue