"test/vscode:/vscode.git/clone" did not exist on "bf7daa8fabbc4a8ba24df7b0e9822f8035ab0429"
Commit c9f17ecb authored by Joseph C Wang's avatar Joseph C Wang
Browse files

allow version to work with -rc tag

parent ac294a74
......@@ -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"]}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment