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
ad9a7cb1
Commit
ad9a7cb1
authored
Aug 07, 2024
by
Timothy J. Baek
Browse files
refac
parent
8187922e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/openai/main.py
backend/apps/openai/main.py
+1
-1
No files found.
backend/apps/openai/main.py
View file @
ad9a7cb1
...
@@ -358,7 +358,7 @@ async def generate_chat_completion(
...
@@ -358,7 +358,7 @@ async def generate_chat_completion(
payload
=
{
**
form_data
}
payload
=
{
**
form_data
}
if
"metadata"
in
payload
:
if
"metadata"
in
payload
:
payload
.
pop
(
"metadata"
)
del
payload
[
"metadata"
]
model_id
=
form_data
.
get
(
"model"
)
model_id
=
form_data
.
get
(
"model"
)
model_info
=
Models
.
get_model_by_id
(
model_id
)
model_info
=
Models
.
get_model_by_id
(
model_id
)
...
...
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