Fix websearch on aya producing error

This commit is contained in:
Cohee 2024-09-02 19:34:09 +03:00
parent 13f237059d
commit bbceee0f41

View File

@ -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',
});