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
a1888b37
Commit
a1888b37
authored
Aug 13, 2024
by
Timothy J. Baek
Browse files
refac
parent
c75e77cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
backend/apps/ollama/main.py
backend/apps/ollama/main.py
+1
-1
backend/utils/misc.py
backend/utils/misc.py
+1
-0
No files found.
backend/apps/ollama/main.py
View file @
a1888b37
...
...
@@ -43,8 +43,8 @@ from config import (
AppConfig
,
)
from
utils.misc
import
(
apply_model_params_to_body_ollama
,
calculate_sha256
,
apply_model_params_to_body_ollama
,
apply_model_params_to_body_openai
,
apply_model_system_prompt_to_body
,
)
...
...
backend/utils/misc.py
View file @
a1888b37
...
...
@@ -179,6 +179,7 @@ def apply_model_params_to_body_ollama(params: dict, form_data: dict) -> dict:
"use_mmap"
,
"use_mlock"
,
"num_thread"
,
"num_gpu"
,
]
mappings
=
{
i
:
lambda
x
:
x
for
i
in
opts
}
form_data
=
apply_model_params_to_body
(
params
,
form_data
,
mappings
)
...
...
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