Merge pull request #2755 from equal-l2/patch-1 Cohere: added the smaller aya model

d5b1a50cca531ccb396b8ab0f72512d231b6d737

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
2 files changed, +4 -2Ignore whitespace
public/index.html+2 -1
@@ -2948,7 +2948,8 @@
29482948 <h4 data-i18n="Cohere Model">Cohere Model</h4>
29492949 <select id="model_cohere_select">
29502950 <optgroup label="Stable">
29512951 <option value="c4ai-aya-23-35b">c4ai-aya-23-35b</option>
2952+ <option value="c4ai-aya-23-8b">c4ai-aya-23-8b</option>
29522953 <option value="command-light">command-light</option>
29532954 <option value="command">command</option>
29542955 <option value="command-r">command-r</option>
src/endpoints/backends/chat-completions.js+2 -1
@@ -538,7 +538,8 @@ async function sendCohereRequest(request, response) {
538538 const connectors = [];
539539 const tools = [];
540540
541- if (request.body.websearch) {
541+ const canDoWebSearch = !String(request.body.model).includes('c4ai-aya');
542+ if (request.body.websearch && canDoWebSearch) {
542543 connectors.push({
543544 id: 'web-search',
544545 });