mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix websearch on aya producing error
This commit is contained in:
@ -538,7 +538,8 @@ async function sendCohereRequest(request, response) {
|
||||
const connectors = [];
|
||||
const tools = [];
|
||||
|
||||
if (request.body.websearch) {
|
||||
const canDoWebSearch = !String(request.body.model).includes('c4ai-aya');
|
||||
if (request.body.websearch && canDoWebSearch) {
|
||||
connectors.push({
|
||||
id: 'web-search',
|
||||
});
|
||||
|
Reference in New Issue
Block a user