AutoCommit: Bool → Dropdown (mention/enforce/forbid), leerer System-Prompt fix

This commit is contained in:
Meleki committed 2026-03-02 09:41:26 +01:00
1 parent 7410a18755
commit 40bab457d9
10 files changed
+52 -27

No files matched your search

+3 -4
View File
@@ -146,10 +146,9 @@ public static class ChatEndpoint
}, attachmentRecords);
}
var systemPrompt = new List<object>
{
new { type = "text", text = systemPromptText }
};
var systemPrompt = string.IsNullOrWhiteSpace(systemPromptText)
? new List<object>()
: new List<object> { new { type = "text", text = systemPromptText } };
var workspace = session.Workspace;
if (!string.IsNullOrEmpty(workspace))