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 255
255
:config $ js/Object.assign
256
256
js-object
257
257
:thinkingConfig $ if think?
258
- js-object ( :thinkingBudget 200 ) ( :includeThoughts think? )
258
+ js-object ( :thinkingBudget 1000 ) ( :includeThoughts think? )
259
+ js-object ( :thinkingBudget 0 ) ( :includeThoughts false )
259
260
:httpOptions $ js-object
260
261
:baseUrl $ get-env "\" gemini-host" "\" https://ja.chenyong.life"
261
262
:tools $ let
279
280
js-await $ for-await-stream sdk-result
280
281
fn ( ? chunk )
281
282
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
284
285
d! $ :: :states cursor
285
286
-> state ( assoc :answer @*text ) ( assoc :loading? false ) ( assoc :done? false )
286
287
d! $ :: :states cursor
You can’t perform that action at this time.
0 commit comments