fix: esc() Quote-Escaping für Attribut-Kontexte + cache_control für Sub-Agents/Telegram
- esc() um "→" Escaping erweitert (Bug: Anführungszeichen in value="..."-Attributen brachen HTML) - cache_control: ephemeral zu RunAgentChat() hinzugefügt (Preparer/Review/Finalizer hatten kein Prompt Caching) - cache_control: ephemeral zu ChatNonStreaming() hinzugefügt (Telegram hatte kein Prompt Caching) - Trailing-Leerzeile in commands-ui.js bereinigt
This commit is contained in:
1 parent
e930268476
commit
9abb5fd217
3 files changed
+3
-2
No files matched your search
@@ -621,6 +621,7 @@ public class AnthropicService
|
||||
{
|
||||
["model"] = modelId,
|
||||
["max_tokens"] = 8192,
|
||||
["cache_control"] = new { type = "ephemeral" },
|
||||
["messages"] = messages,
|
||||
["stream"] = false
|
||||
};
|
||||
@@ -850,6 +851,7 @@ public class AnthropicService
|
||||
{
|
||||
["model"] = ctx.ModelId,
|
||||
["max_tokens"] = 16384,
|
||||
["cache_control"] = new { type = "ephemeral" },
|
||||
["messages"] = messages,
|
||||
["stream"] = false
|
||||
};
|
||||
|
||||
@@ -53,4 +53,3 @@ function loadCommandsIntoUI(container, customCommands) {
|
||||
} catch (e) { /* ignore parse errors */ }
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ const metaEl = () => $('#meta');
|
||||
function esc(s) {
|
||||
const d = document.createElement('div');
|
||||
d.textContent = s;
|
||||
return d.innerHTML;
|
||||
return d.innerHTML.replace(/"/g, '"');
|
||||
}
|
||||
|
||||
function truncate(s, max) {
|
||||
|
||||
Reference in new issue
Block a user