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
782cce7c
Unverified
Commit
782cce7c
authored
Apr 06, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Apr 06, 2024
Browse files
Merge pull request #1340 from joequant/main
allow version to work with -rc tag
parents
fafb8cd2
395ca821
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
backend/apps/ollama/main.py
backend/apps/ollama/main.py
+2
-1
No files found.
backend/apps/ollama/main.py
View file @
782cce7c
...
@@ -215,7 +215,8 @@ async def get_ollama_versions(url_idx: Optional[int] = None):
...
@@ -215,7 +215,8 @@ 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"
].
split
(
"-"
)[
0
].
split
(
"."
))),
)
)
return
{
"version"
:
lowest_version
[
"version"
]}
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