From 54a6f4bc62ff47187b25439dc61514bd982d693b Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 2 Apr 2024 22:52:51 +0300 Subject: [PATCH] Add speed control --- public/css/toggle-dependent.css | 8 ++++++++ public/index.html | 11 ++++++++++- public/scripts/power-user.js | 7 +++++++ public/scripts/sse-stream.js | 7 ++++--- 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/public/css/toggle-dependent.css b/public/css/toggle-dependent.css index 13067d50a..3f90edc42 100644 --- a/public/css/toggle-dependent.css +++ b/public/css/toggle-dependent.css @@ -439,3 +439,11 @@ body.expandMessageActions .mes .mes_buttons .extraMesButtonsHint { #openai_image_inlining:checked~#image_inlining_hint { display: block; } + +#smooth_streaming:not(:checked)~#smooth_streaming_speed_control { + display: none; +} + +#smooth_streaming:checked~#smooth_streaming_speed_control { + display: block; +} diff --git a/public/index.html b/public/index.html index d6ed82c83..ec7c1500f 100644 --- a/public/index.html +++ b/public/index.html @@ -3618,7 +3618,7 @@ -