Merge pull request #2755 from equal-l2/patch-1
Cohere: added the smaller aya model
This commit is contained in:
commit
d5b1a50cca
|
@ -2948,7 +2948,8 @@
|
||||||
<h4 data-i18n="Cohere Model">Cohere Model</h4>
|
<h4 data-i18n="Cohere Model">Cohere Model</h4>
|
||||||
<select id="model_cohere_select">
|
<select id="model_cohere_select">
|
||||||
<optgroup label="Stable">
|
<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-light">command-light</option>
|
||||||
<option value="command">command</option>
|
<option value="command">command</option>
|
||||||
<option value="command-r">command-r</option>
|
<option value="command-r">command-r</option>
|
||||||
|
|
|
@ -538,7 +538,8 @@ async function sendCohereRequest(request, response) {
|
||||||
const connectors = [];
|
const connectors = [];
|
||||||
const tools = [];
|
const tools = [];
|
||||||
|
|
||||||
if (request.body.websearch) {
|
const canDoWebSearch = !String(request.body.model).includes('c4ai-aya');
|
||||||
|
if (request.body.websearch && canDoWebSearch) {
|
||||||
connectors.push({
|
connectors.push({
|
||||||
id: 'web-search',
|
id: 'web-search',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue