refactor: 优化vllm的icon

This commit is contained in:
wxg0103 2024-08-21 14:33:48 +08:00
parent 745fed6bdd
commit 8ead0e2b6b
3 changed files with 6 additions and 23 deletions

View File

@ -1,22 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%" viewBox="0 0 3000.000000 860.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,860.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M10110 4275 l0 -2905 858 0 c471 0 1299 -3 1840 -7 l982 -6 0 346 0
347 -1448 0 -1449 0 -6 428 c-4 235 -7 1389 -7 2565 l0 2137 -385 0 -385 0 0
-2905z"/>
<path d="M14550 4275 l0 -2905 858 0 c471 0 1299 -3 1840 -7 l982 -6 0 346 0
347 -1448 0 -1449 0 -6 428 c-4 235 -7 1389 -7 2565 l0 2137 -385 0 -385 0 0
-2905z"/>
<path d="M19000 4275 l0 -2905 235 -2 c129 -2 292 -3 363 -3 l127 0 5 2491 5
2491 796 -1691 795 -1691 234 0 233 0 799 1685 c439 926 803 1689 808 1694 7
7 10 -849 10 -2487 l0 -2497 385 0 385 0 0 2910 0 2910 -538 0 -537 0 -744
-1607 c-409 -885 -747 -1611 -750 -1615 -4 -4 -354 718 -779 1605 l-771 1612
-531 3 -530 2 0 -2905z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 118 KiB

View File

@ -42,7 +42,7 @@ class VllmModelProvider(IModelProvider):
def get_model_provide_info(self):
return ModelProvideInfo(provider='model_vllm_provider', name='Vllm', icon=get_file_content(
os.path.join(PROJECT_DIR, "apps", "setting", 'models_provider', 'impl', 'vllm_model_provider', 'icon',
'vllm_icon.svg')))
'vllm_icon_svg')))
@staticmethod
def get_base_model_list(api_base):