Merge pull request #2755 from equal-l2/patch-1

Cohere: added the smaller aya model
This commit is contained in:
Cohee 2024-09-02 19:35:10 +03:00 committed by GitHub
commit d5b1a50cca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -2948,7 +2948,8 @@
<h4 data-i18n="Cohere Model">Cohere Model</h4>
<select id="model_cohere_select">
<optgroup label="Stable">
<option value="c4ai-aya-23">c4ai-aya-23</option>
<option value="c4ai-aya-23-35b">c4ai-aya-23-35b</option>
<option value="c4ai-aya-23-8b">c4ai-aya-23-8b</option>
<option value="command-light">command-light</option>
<option value="command">command</option>
<option value="command-r">command-r</option>

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