Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
c9f17ecb
"test/vscode:/vscode.git/clone" did not exist on "bf7daa8fabbc4a8ba24df7b0e9822f8035ab0429"
Commit
c9f17ecb
authored
Mar 29, 2024
by
Joseph C Wang
Browse files
allow version to work with -rc tag
parent
ac294a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/ollama/main.py
backend/apps/ollama/main.py
+1
-1
No files found.
backend/apps/ollama/main.py
View file @
c9f17ecb
...
...
@@ -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"
]}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment