mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Exclude LearnLM from web search
This commit is contained in:
@@ -345,6 +345,7 @@ async function sendMakerSuiteRequest(request, response) {
|
|||||||
const reasoningEffort = String(request.body.reasoning_effort);
|
const reasoningEffort = String(request.body.reasoning_effort);
|
||||||
const isThinking = model.includes('thinking');
|
const isThinking = model.includes('thinking');
|
||||||
const isGemma = model.includes('gemma');
|
const isGemma = model.includes('gemma');
|
||||||
|
const isLearnLM = model.includes('learnlm');
|
||||||
|
|
||||||
const generationConfig = {
|
const generationConfig = {
|
||||||
stopSequences: request.body.stop,
|
stopSequences: request.body.stop,
|
||||||
@@ -392,7 +393,7 @@ async function sendMakerSuiteRequest(request, response) {
|
|||||||
}
|
}
|
||||||
// Most of the other models allow for setting the threshold of filters, except for HARM_CATEGORY_CIVIC_INTEGRITY, to OFF.
|
// Most of the other models allow for setting the threshold of filters, except for HARM_CATEGORY_CIVIC_INTEGRITY, to OFF.
|
||||||
|
|
||||||
if (enableWebSearch && !useMultiModal && !isGemma) {
|
if (enableWebSearch && !useMultiModal && !isGemma && !isLearnLM) {
|
||||||
const searchTool = model.includes('1.5') || model.includes('1.0')
|
const searchTool = model.includes('1.5') || model.includes('1.0')
|
||||||
? ({ google_search_retrieval: {} })
|
? ({ google_search_retrieval: {} })
|
||||||
: ({ google_search: {} });
|
: ({ google_search: {} });
|
||||||
|
Reference in New Issue
Block a user