Skip to content

Commit 6074889

Browse files
committed
make sure model switcher always available
1 parent 67f12e0 commit 6074889

File tree

2 files changed

+85
-74
lines changed

2 files changed

+85
-74
lines changed

calcit.cirru

Lines changed: 74 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,15 @@
420420
or (= :imagen-3 model) (= :flash-imagen model)
421421
img $ {}
422422
:class-name $ str-spaced style-image "\"show-image"
423+
div ({})
424+
a $ {}
425+
:inner-text $ or (turn-str model) "\"-"
426+
:class-name $ str-spaced style-a-toggler css/font-fancy
427+
:style $ {}
428+
:opacity $ if (= model :anthropic) 1 0.3
429+
:on-click $ fn (e d!)
430+
; d! $ :: :change-model
431+
.show model-plugin d!
423432
if (:loading? state)
424433
div ({})
425434
memof1-call-by :abort-loading comp-abort $ str (turn-str model) "\" loading..."
@@ -438,17 +447,8 @@
438447
{} $ :class-name css/row-parted
439448
div
440449
{} $ :class-name (str-spaced css/row-middle css/gap8)
441-
if (:done? state)
442-
a $ {}
443-
:inner-text $ turn-str model
444-
:class-name $ str-spaced style-a-toggler css/font-fancy
445-
:style $ {}
446-
:opacity $ if (= model :anthropic) 1 0.3
447-
:on-click $ fn (e d!)
448-
; d! $ :: :change-model
449-
.show model-plugin d!
450-
div ({})
451-
memof1-call-by :abort-streaming comp-abort $ str (turn-str model) "\" streaming..."
450+
if (:done? state) nil $ div ({})
451+
memof1-call-by :abort-streaming comp-abort $ str (turn-str model) "\" streaming..."
452452
if (:done? state)
453453
div
454454
{} $ :class-name (str-spaced css/row-middle)

0 commit comments

Comments
 (0)