"...git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "f892ed67aa3eaa1ee1ff4c12a94b2241c8a3788e"
Unverified Commit 0ab33bd5 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

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

fix: rag message body format
parents 6b3b4ced da16d43b
......@@ -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: [
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment