Merge pull request #568 from ollama-webui/litellm-rag-fix

fix: rag message body format
This commit is contained in:
Timothy Jaeryang Baek 2024-01-25 01:37:09 -08:00 committed by GitHub
commit 0ab33bd5f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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: [
{ {

View file

@ -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: [
{ {