feat: a short name of up to 7 characters for each model, on the chat's model button, always whole; the message field back to the normal 14px
This commit is contained in:
1 parent
351e4ad28d
commit
6a17f40042
6 files changed
+39
-23
No files matched your search
@@ -711,7 +711,9 @@
|
||||
const always = window.Prefs && Prefs.get().aiModelPick === 'always';
|
||||
mpick.hidden = !(models.length > 1 || (always && models.length));
|
||||
const cur = modelId(), m = models.find(x => x.id === cur);
|
||||
q('.ai-mname').textContent = m ? m.name : '';
|
||||
// The button: the short name if there is one; the list: the full names.
|
||||
q('.ai-mname').textContent = m ? (m.short || m.name) : '';
|
||||
mpick.classList.toggle('short', !!(m && m.short));
|
||||
mbtn.title = m ? 'Модель: ' + m.name : 'Модель';
|
||||
mmenu.innerHTML = '';
|
||||
models.forEach(x => {
|
||||
|
||||
Reference in new issue
Block a user