File tree Expand file tree Collapse file tree 2 files changed +48
-5
lines changed
Expand file tree Collapse file tree 2 files changed +48
-5
lines changed Original file line number Diff line number Diff line change 222222 d! $ :: :states cursor
223223 -> state ( assoc :answer nil ) ( assoc :loading? true )
224224 let
225- selected $ js-await ( get-selected )
225+ selected $ if ( .includes? prompt-text "\" {{selected}}" )
226+ js-await $ get-selected
226227 gen-ai $ let
227228 ai @*gen-ai-new
228229 ; js/console.log ai
229230 , ai
230231 content $ .!replace prompt-text "\" {{selected}}" ( or selected "\" <未找到选中内容>" )
231232 json? $ or ( .!includes prompt-text "\" {{json}}" ) ( .!includes prompt-text "\" {{JSON}}" )
232233 think? $ or ( .!includes prompt-text "\" {{think}}" ) ( .!includes prompt-text "\" {{THINK}}" )
234+ search? $ or ( .!includes prompt-text "\" {{search}}" ) ( .!includes prompt-text "\" {{SEARCH}}" )
233235 sdk-result $ js-await
234236 .!generateContentStream ( .-models gen-ai )
235237 js-object
252254 abort $ new js/AbortController
253255 reset! *abort-control abort
254256 .-signal abort
257+ :tools $ js-array
258+ js-object $ :googleSearch ( js-object )
255259 if json?
256260 js-object $ "\"responseMimeType" "\" application/json"
257261 , js/undefined
You can’t perform that action at this time.
0 commit comments