mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Fix websearch on aya producing error
This commit is contained in:
parent
13f237059d
commit
bbceee0f41
@ -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',
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user