mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
Merge pull request #568 from ollama-webui/litellm-rag-fix
fix: rag message body format
This commit is contained in:
commit
0ab33bd5f3
@ -519,7 +519,7 @@
|
||||
.filter((message) => message)
|
||||
.map((message, idx, arr) => ({
|
||||
role: message.role,
|
||||
...(message.files
|
||||
...(message.files.filter((file) => file.type === 'image')
|
||||
? {
|
||||
content: [
|
||||
{
|
||||
|
@ -530,7 +530,7 @@
|
||||
.filter((message) => message)
|
||||
.map((message, idx, arr) => ({
|
||||
role: message.role,
|
||||
...(message.files
|
||||
...(message.files.filter((file) => file.type === 'image')
|
||||
? {
|
||||
content: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user