Add llama 3.1 models for groq
This commit is contained in:
parent
a1c61d7b5c
commit
cc0ae2a567
|
@ -2862,6 +2862,11 @@
|
||||||
</div>
|
</div>
|
||||||
<h4 data-i18n="Groq Model">Groq Model</h4>
|
<h4 data-i18n="Groq Model">Groq Model</h4>
|
||||||
<select id="model_groq_select">
|
<select id="model_groq_select">
|
||||||
|
<option value="llama-3.1-405b-reasoning">llama-3.1-405b-reasoning</option>
|
||||||
|
<option value="llama-3.1-70b-versatile">llama-3.1-70b-versatile</option>
|
||||||
|
<option value="llama-3.1-8b-instant">llama-3.1-8b-instant</option>
|
||||||
|
<option value="llama3-groq-70b-8192-tool-use-preview">llama3-groq-70b-8192-tool-use-preview</option>
|
||||||
|
<option value="llama3-groq-8b-8192-tool-use-preview">llama3-groq-8b-8192-tool-use-preview</option>
|
||||||
<option value="llama3-8b-8192">llama3-8b-8192</option>
|
<option value="llama3-8b-8192">llama3-8b-8192</option>
|
||||||
<option value="llama3-70b-8192">llama3-70b-8192</option>
|
<option value="llama3-70b-8192">llama3-70b-8192</option>
|
||||||
<option value="mixtral-8x7b-32768">mixtral-8x7b-32768</option>
|
<option value="mixtral-8x7b-32768">mixtral-8x7b-32768</option>
|
||||||
|
|
|
@ -4220,6 +4220,12 @@ async function onModelChange() {
|
||||||
if (oai_settings.max_context_unlocked) {
|
if (oai_settings.max_context_unlocked) {
|
||||||
$('#openai_max_context').attr('max', unlocked_max);
|
$('#openai_max_context').attr('max', unlocked_max);
|
||||||
}
|
}
|
||||||
|
else if (oai_settings.groq_model.includes('llama-3.1')) {
|
||||||
|
$('#openai_max_context').attr('max', max_128k);
|
||||||
|
}
|
||||||
|
else if (oai_settings.groq_model.includes('llama3-groq')) {
|
||||||
|
$('#openai_max_context').attr('max', max_8k);
|
||||||
|
}
|
||||||
else if (['llama3-8b-8192', 'llama3-70b-8192', 'gemma-7b-it', 'gemma2-9b-it'].includes(oai_settings.groq_model)) {
|
else if (['llama3-8b-8192', 'llama3-70b-8192', 'gemma-7b-it', 'gemma2-9b-it'].includes(oai_settings.groq_model)) {
|
||||||
$('#openai_max_context').attr('max', max_8k);
|
$('#openai_max_context').attr('max', max_8k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue