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