forked from open-webui/open-webui
fix: openai compatible api rag issue
This commit is contained in:
parent
6f7db47583
commit
250ccd828d
2 changed files with 2 additions and 2 deletions
|
@ -519,7 +519,7 @@
|
|||
.filter((message) => message)
|
||||
.map((message, idx, arr) => ({
|
||||
role: message.role,
|
||||
...(message.files.filter((file) => file.type === 'image')
|
||||
...(message.files?.filter((file) => file.type === 'image').length > 0 ?? false
|
||||
? {
|
||||
content: [
|
||||
{
|
||||
|
|
|
@ -530,7 +530,7 @@
|
|||
.filter((message) => message)
|
||||
.map((message, idx, arr) => ({
|
||||
role: message.role,
|
||||
...(message.files.filter((file) => file.type === 'image')
|
||||
...(message.files?.filter((file) => file.type === 'image').length > 0 ?? false
|
||||
? {
|
||||
content: [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue