fix: skill injected into system prompt
This commit is contained in:
@@ -264,7 +264,7 @@ export function ChatInterface() {
|
||||
const formattedMessages = data.messages
|
||||
.filter((m) => {
|
||||
if (m.role === 'system' || m.role === 'tool' || m.role === 'function') return false;
|
||||
if (m.role === 'assistant' && m.tool_calls && m.tool_calls.length > 0 && !m.viz) return false;
|
||||
if (m.role === 'assistant' && m.tool_calls && m.tool_calls.length > 0 && !m.viz && (!m.content || m.content.trim() === '')) return false;
|
||||
return true;
|
||||
})
|
||||
.map((m, idx) => ({
|
||||
|
||||
@@ -227,7 +227,7 @@ export function Skills() {
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell className="py-4 px-4 text-right">
|
||||
<div className="flex justify-end gap-1">
|
||||
<div className="flex items-center justify-end gap-1">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
|
||||
Reference in New Issue
Block a user