"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "8011d9345d439604b3ea5dfa7b3bc86fe3890e2c"
Commit 985ee1c2 authored by Robin Kroonen's avatar Robin Kroonen
Browse files

Merge branch 'dev' of https://github.com/kroonen/open-webui into dev

parents 064d307d 056c413e
...@@ -213,7 +213,7 @@ __builtins__.input = input`); ...@@ -213,7 +213,7 @@ __builtins__.input = input`);
<div class="p-1">{@html lang}</div> <div class="p-1">{@html lang}</div>
<div class="flex items-center"> <div class="flex items-center">
{#if ['', 'python'].includes(lang) && (lang === 'python' || checkPythonCode(code))} {#if lang === 'python' || (lang === '' && checkPythonCode(code))}
{#if executing} {#if executing}
<div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div> <div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div>
{:else} {:else}
......
...@@ -345,8 +345,8 @@ ...@@ -345,8 +345,8 @@
? { ? {
role: 'system', role: 'system',
content: content:
$settings.system + (responseMessage?.userContext ?? null) $settings.system + responseMessage?.userContext ?? null
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` ? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
: '' : ''
} }
: undefined, : undefined,
...@@ -605,7 +605,7 @@ ...@@ -605,7 +605,7 @@
role: 'system', role: 'system',
content: content:
$settings.system + (responseMessage?.userContext ?? null) $settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` ? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
: '' : ''
} }
: undefined, : undefined,
......
...@@ -351,8 +351,8 @@ ...@@ -351,8 +351,8 @@
? { ? {
role: 'system', role: 'system',
content: content:
$settings.system + (responseMessage?.userContext ?? null) $settings.system + responseMessage?.userContext ?? null
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` ? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
: '' : ''
} }
: undefined, : undefined,
...@@ -611,7 +611,7 @@ ...@@ -611,7 +611,7 @@
role: 'system', role: 'system',
content: content:
$settings.system + (responseMessage?.userContext ?? null) $settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}` ? `\n\nUser Context:\n${(responseMessage?.userContext ?? []).join('\n')}`
: '' : ''
} }
: undefined, : undefined,
......
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