File tree Expand file tree Collapse file tree 2 files changed +28
-7
lines changed
Expand file tree Collapse file tree 2 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 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
279280 js-await $ for-await-stream sdk-result
280281 fn ( ? chunk )
281282 if ( some? chunk )
282- do
283- swap! *text str $ .-text chunk
283+ do ( js/console.log " \" With think" 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
You can’t perform that action at this time.
0 commit comments