Text Completion: Improve generic source model display

This commit is contained in:
Cohee 2024-12-20 20:59:36 +02:00
parent 7e7b3e30c4
commit 1dd97c139e
2 changed files with 16 additions and 1 deletions

15
public/img/generic.svg Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="616.86328"
height="616.86328"
viewBox="0 0 77.10791 77.10791"
version="1.1"
id="svg4"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs4" />
<path
id="circle1"
d="M 38.553955,0 A 38.554,38.554 0 0 0 0,38.553955 38.554,38.554 0 0 0 38.553955,77.107911 38.554,38.554 0 0 0 77.107911,38.553955 38.554,38.554 0 0 0 38.553955,0 Z m -3.125976,13.545898 h 6.251953 v 19.593751 l 16.968751,-9.796875 3.125974,5.414306 -16.968506,9.796875 16.968506,9.796877 -3.125974,5.414305 -16.968751,-9.796874 V 63.56201 H 35.427979 V 43.968263 l -16.968506,9.796874 -3.125977,-5.414305 16.96875,-9.796877 -16.96875,-9.796875 3.125977,-5.414306 16.968506,9.796875 z" />
</svg>

After

Width:  |  Height:  |  Size: 803 B

View File

@ -1223,7 +1223,7 @@ async function getStatusTextgen() {
setOnlineStatus(textgen_settings.tabby_model || data?.result);
} else if (textgen_settings.type === textgen_types.GENERIC) {
loadGenericModels(data?.data);
setOnlineStatus(textgen_settings.generic_model || 'Connected');
setOnlineStatus(textgen_settings.generic_model || data?.result || 'Connected');
} else {
setOnlineStatus(data?.result);
}