Skip to content

Commit ddcc6e8

Browse files
committed
trivial change on empty array in config
1 parent 7cc943a commit ddcc6e8

File tree

2 files changed

+67
-50
lines changed

2 files changed

+67
-50
lines changed

calcit.cirru

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

compact.cirru

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,17 @@
258258
js-object (:thinkingBudget 200) (:includeThoughts think?)
259259
:httpOptions $ js-object
260260
:baseUrl $ get-env "\"gemini-host" "\"https://ja.chenyong.life"
261-
:tools $ ->
262-
js-array
263-
if search? $ js-object
264-
:googleSearch $ js-object
265-
if has-url? $ js-object
266-
:urlContext $ js-object
267-
.!filter $ fn (x & _a) x
261+
:tools $ let
262+
t $ ->
263+
js-array
264+
if search? $ js-object
265+
:googleSearch $ js-object
266+
if has-url? $ js-object
267+
:urlContext $ js-object
268+
.!filter $ fn (x & _a) x
269+
if
270+
= 0 $ .-length t
271+
, js/undefined t
268272
:abortSignal $ let
269273
abort $ new js/AbortController
270274
reset! *abort-control abort
@@ -440,8 +444,7 @@
440444
{} $ :class-name css/row-parted
441445
div
442446
{} $ :class-name (str-spaced css/row-middle css/gap8)
443-
if (:done? state) nil $ div ({})
444-
memof1-call-by :abort-streaming comp-abort $ str (turn-str model) "\" streaming..."
447+
if (:done? state) nil $ div ({}) (memof1-call-by :abort-streaming comp-abort "\"Streaming...")
445448
if (:done? state)
446449
div
447450
{} $ :class-name (str-spaced css/row-middle)

0 commit comments

Comments
 (0)