Skip to content

Commit 93575b8

Browse files
committed
disable thinking by default in gemini flash
1 parent ddcc6e8 commit 93575b8

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

calcit.cirru

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

compact.cirru

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@
255255
:config $ js/Object.assign
256256
js-object
257257
:thinkingConfig $ if think?
258-
js-object (:thinkingBudget 200) (:includeThoughts think?)
258+
js-object (:thinkingBudget 1000) (:includeThoughts think?)
259+
js-object (:thinkingBudget 0) (:includeThoughts false)
259260
:httpOptions $ js-object
260261
:baseUrl $ get-env "\"gemini-host" "\"https://ja.chenyong.life"
261262
:tools $ let
@@ -280,7 +281,7 @@
280281
fn (? chunk)
281282
if (some? chunk)
282283
do
283-
swap! *text str $ .-text chunk
284+
swap! *text str $ either (.-text chunk) js/chunk.candidates[0].content.parts[0].text
284285
d! $ :: :states cursor
285286
-> state (assoc :answer @*text) (assoc :loading? false) (assoc :done? false)
286287
d! $ :: :states cursor

0 commit comments

Comments
 (0)