File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
lib/server/textGeneration Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ async function* textGenerationWithoutTitle(
62
62
// - it's not continuing a previous message
63
63
// - AND the model doesn't support tools and websearch is selected
64
64
// - OR the assistant has websearch enabled (no tools for assistants for now)
65
- if (
66
- ! isContinue &&
67
- ( ( ! model . tools && webSearch && ! conv . assistantId ) || assistantHasWebSearch ( assistant ) )
68
- ) {
65
+ if ( ! isContinue && ( ( webSearch && ! conv . assistantId ) || assistantHasWebSearch ( assistant ) ) ) {
69
66
webSearchResult = yield * runWebSearch ( conv , messages , assistant ?. rag ) ;
70
67
}
71
68
Original file line number Diff line number Diff line change 32
32
let loading = false ;
33
33
let pending = false ;
34
34
35
+ $ : activeModel = findCurrentModel ([... data .models , ... data .oldModels ], data .model );
36
+
35
37
let files: File [] = [];
36
38
37
39
async function convFromShared() {
201
203
messageId ,
202
204
isRetry ,
203
205
isContinue ,
204
- webSearch: ! hasAssistant && $webSearchParameters .useSearch ,
206
+ webSearch: ! hasAssistant && ! activeModel . tools && $webSearchParameters .useSearch ,
205
207
tools: $settings .tools , // preference for tools
206
208
files: isRetry ? userMessage ?.files : base64Files ,
207
209
},
You can’t perform that action at this time.
0 commit comments