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
8187922e
"src/vscode:/vscode.git/clone" did not exist on "327deaee4122b3ff7780e36d0e481c5997dbe1fa"
Commit
8187922e
authored
Aug 07, 2024
by
Timothy J. Baek
Browse files
fix: "metadata" issue
parent
240a3014
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
backend/apps/openai/main.py
backend/apps/openai/main.py
+3
-1
No files found.
backend/apps/openai/main.py
View file @
8187922e
...
@@ -356,7 +356,9 @@ async def generate_chat_completion(
...
@@ -356,7 +356,9 @@ async def generate_chat_completion(
):
):
idx
=
0
idx
=
0
payload
=
{
**
form_data
}
payload
=
{
**
form_data
}
payload
.
pop
(
"metadata"
)
if
"metadata"
in
payload
:
payload
.
pop
(
"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