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 -2Showing whitespace changes
public/index.html+2 -1
@@ -2948,7 +2948,8 @@
2948 <h4 data-i18n="Cohere Model">Cohere Model</h4>2948 <h4 data-i18n="Cohere Model">Cohere Model</h4>
2949 <select id="model_cohere_select">2949 <select id="model_cohere_select">
2950 <optgroup label="Stable">2950 <optgroup label="Stable">
2951 <option value="c4ai-aya-23">c4ai-aya-23</option>2951 <option value="c4ai-aya-23-35b">c4ai-aya-23-35b</option>
2952 <option value="c4ai-aya-23-8b">c4ai-aya-23-8b</option>
2952 <option value="command-light">command-light</option>2953 <option value="command-light">command-light</option>
2953 <option value="command">command</option>2954 <option value="command">command</option>
2954 <option value="command-r">command-r</option>2955 <option value="command-r">command-r</option>
src/endpoints/backends/chat-completions.js+2 -1
@@ -538,7 +538,8 @@ async function sendCohereRequest(request, response) {
538 const connectors = [];538 const connectors = [];
539 const tools = [];539 const tools = [];
540540
541 if (request.body.websearch) {541 const canDoWebSearch = !String(request.body.model).includes('c4ai-aya');
542 if (request.body.websearch && canDoWebSearch) {
542 connectors.push({543 connectors.push({
543 id: 'web-search',544 id: 'web-search',
544 });545 });