diff --git a/Services/AnthropicService.cs b/Services/AnthropicService.cs index f63b1a5..cd097fd 100644 --- a/Services/AnthropicService.cs +++ b/Services/AnthropicService.cs @@ -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 }; diff --git a/wwwroot/js/commands-ui.js b/wwwroot/js/commands-ui.js index eb85f8c..8914a95 100644 --- a/wwwroot/js/commands-ui.js +++ b/wwwroot/js/commands-ui.js @@ -53,4 +53,3 @@ function loadCommandsIntoUI(container, customCommands) { } catch (e) { /* ignore parse errors */ } } - diff --git a/wwwroot/js/ui-helpers.js b/wwwroot/js/ui-helpers.js index f8c3638..53b1d86 100644 --- a/wwwroot/js/ui-helpers.js +++ b/wwwroot/js/ui-helpers.js @@ -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) {