"sims/git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "768f80eb3e9c68aab0a75a647de58b790baf0cc3"
Unverified Commit af34b101 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #576 from ollama-webui/rag-fix

fix: openai compatible api rag issue
parents 6f7db475 250ccd82
......@@ -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: [
{
......
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