diff --git a/backend/apps/ollama/main.py b/backend/apps/ollama/main.py index f8701c43e..39106ac17 100644 --- a/backend/apps/ollama/main.py +++ b/backend/apps/ollama/main.py @@ -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"]}