chore: update iconfont static files
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
src/components/icon-font/iconfont.js
|
||||
src/components/icon-font/iconfont/iconfont.js
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
@font-face {
|
||||
font-family: iconfont; /* Project id 4613488 */
|
||||
src:
|
||||
url('iconfont.woff2?t=1737340346059') format('woff2'),
|
||||
url('iconfont.woff?t=1737340346059') format('woff'),
|
||||
url('iconfont.ttf?t=1737340346059') format('truetype');
|
||||
url('iconfont.woff2?t=1744337857781') format('woff2'),
|
||||
url('iconfont.woff?t=1744337857781') format('woff'),
|
||||
url('iconfont.ttf?t=1744337857781') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
@@ -14,6 +14,74 @@
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-uncollapse_all::before {
|
||||
content: '\e657';
|
||||
}
|
||||
|
||||
.icon-collapse::before {
|
||||
content: '\e656';
|
||||
}
|
||||
|
||||
.icon-rocket-launch::before {
|
||||
content: '\e689';
|
||||
}
|
||||
|
||||
.icon-user-filled::before {
|
||||
content: '\e625';
|
||||
}
|
||||
|
||||
.icon-assistant::before {
|
||||
content: '\e62d';
|
||||
}
|
||||
|
||||
.icon-assistant-filled::before {
|
||||
content: '\e847';
|
||||
}
|
||||
|
||||
.icon-save3::before {
|
||||
content: '\e655';
|
||||
}
|
||||
|
||||
.icon-fankuifaqs::before {
|
||||
content: '\e7bf';
|
||||
}
|
||||
|
||||
.icon-issues::before {
|
||||
content: '\e816';
|
||||
}
|
||||
|
||||
.icon-neicun::before {
|
||||
content: '\e688';
|
||||
}
|
||||
|
||||
.icon-collapse_all::before {
|
||||
content: '\e66f';
|
||||
}
|
||||
|
||||
.icon-down::before {
|
||||
content: '\e654';
|
||||
}
|
||||
|
||||
.icon-fenxiang::before {
|
||||
content: '\e604';
|
||||
}
|
||||
|
||||
.icon-mosaic-2::before {
|
||||
content: '\e64f';
|
||||
}
|
||||
|
||||
.icon-stars::before {
|
||||
content: '\e8a8';
|
||||
}
|
||||
|
||||
.icon-mosaic::before {
|
||||
content: '\e636';
|
||||
}
|
||||
|
||||
.icon-outline-play::before {
|
||||
content: '\e653';
|
||||
}
|
||||
|
||||
.icon-SelectionInverse::before {
|
||||
content: '\eace';
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -5,6 +5,125 @@
|
||||
"css_prefix_text": "icon-",
|
||||
"description": "",
|
||||
"glyphs": [
|
||||
{
|
||||
"icon_id": "43808249",
|
||||
"name": "uncollapse_all",
|
||||
"font_class": "uncollapse_all",
|
||||
"unicode": "e657",
|
||||
"unicode_decimal": 58967
|
||||
},
|
||||
{
|
||||
"icon_id": "43807590",
|
||||
"name": "collapse",
|
||||
"font_class": "collapse",
|
||||
"unicode": "e656",
|
||||
"unicode_decimal": 58966
|
||||
},
|
||||
{
|
||||
"icon_id": "22575690",
|
||||
"name": "rocket-launch",
|
||||
"font_class": "rocket-launch",
|
||||
"unicode": "e689",
|
||||
"unicode_decimal": 59017
|
||||
},
|
||||
{
|
||||
"icon_id": "6050653",
|
||||
"name": "user",
|
||||
"font_class": "user-filled",
|
||||
"unicode": "e625",
|
||||
"unicode_decimal": 58917
|
||||
},
|
||||
{
|
||||
"icon_id": "37486588",
|
||||
"name": "assistant",
|
||||
"font_class": "assistant",
|
||||
"unicode": "e62d",
|
||||
"unicode_decimal": 58925
|
||||
},
|
||||
{
|
||||
"icon_id": "43220044",
|
||||
"name": "AIAssistant",
|
||||
"font_class": "assistant-filled",
|
||||
"unicode": "e847",
|
||||
"unicode_decimal": 59463
|
||||
},
|
||||
{
|
||||
"icon_id": "43626126",
|
||||
"name": "save",
|
||||
"font_class": "save3",
|
||||
"unicode": "e655",
|
||||
"unicode_decimal": 58965
|
||||
},
|
||||
{
|
||||
"icon_id": "20186129",
|
||||
"name": "反馈faqs",
|
||||
"font_class": "fankuifaqs",
|
||||
"unicode": "e7bf",
|
||||
"unicode_decimal": 59327
|
||||
},
|
||||
{
|
||||
"icon_id": "42800361",
|
||||
"name": "issues",
|
||||
"font_class": "issues",
|
||||
"unicode": "e816",
|
||||
"unicode_decimal": 59414
|
||||
},
|
||||
{
|
||||
"icon_id": "8211955",
|
||||
"name": "ram",
|
||||
"font_class": "neicun",
|
||||
"unicode": "e688",
|
||||
"unicode_decimal": 59016
|
||||
},
|
||||
{
|
||||
"icon_id": "37125227",
|
||||
"name": "collapse_all",
|
||||
"font_class": "collapse_all",
|
||||
"unicode": "e66f",
|
||||
"unicode_decimal": 58991
|
||||
},
|
||||
{
|
||||
"icon_id": "43363249",
|
||||
"name": "down",
|
||||
"font_class": "down",
|
||||
"unicode": "e654",
|
||||
"unicode_decimal": 58964
|
||||
},
|
||||
{
|
||||
"icon_id": "159932",
|
||||
"name": "search",
|
||||
"font_class": "fenxiang",
|
||||
"unicode": "e604",
|
||||
"unicode_decimal": 58884
|
||||
},
|
||||
{
|
||||
"icon_id": "40678285",
|
||||
"name": "mosaic",
|
||||
"font_class": "mosaic-2",
|
||||
"unicode": "e64f",
|
||||
"unicode_decimal": 58959
|
||||
},
|
||||
{
|
||||
"icon_id": "22859935",
|
||||
"name": "stars",
|
||||
"font_class": "stars",
|
||||
"unicode": "e8a8",
|
||||
"unicode_decimal": 59560
|
||||
},
|
||||
{
|
||||
"icon_id": "39566959",
|
||||
"name": "mosaic",
|
||||
"font_class": "mosaic",
|
||||
"unicode": "e636",
|
||||
"unicode_decimal": 58934
|
||||
},
|
||||
{
|
||||
"icon_id": "43256197",
|
||||
"name": "play circle",
|
||||
"font_class": "outline-play",
|
||||
"unicode": "e653",
|
||||
"unicode_decimal": 58963
|
||||
},
|
||||
{
|
||||
"icon_id": "27116743",
|
||||
"name": "SelectionInverse",
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
import { createFromIconfontCN } from '@ant-design/icons';
|
||||
// import './iconfont/iconfont.js';
|
||||
import './iconfont/iconfont.js';
|
||||
|
||||
const IconFont = createFromIconfontCN({
|
||||
scriptUrl: '//at.alicdn.com/t/c/font_4613488_hlvsvytu57b.js'
|
||||
scriptUrl: ''
|
||||
});
|
||||
|
||||
export default IconFont;
|
||||
|
||||
@@ -29,6 +29,7 @@ import {
|
||||
} from '../config';
|
||||
import { useFormContext } from '../config/form-context';
|
||||
import llamaConfig from '../config/llama-config';
|
||||
import mindieConfig from '../config/mindie-config';
|
||||
import { FormData } from '../config/types';
|
||||
import vllmConfig from '../config/vllm-config';
|
||||
import dataformStyles from '../style/data-form.less';
|
||||
@@ -118,6 +119,9 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
||||
if (backend === backendOptionsMap.vllm) {
|
||||
return vllmConfig;
|
||||
}
|
||||
if (backend === backendOptionsMap.ascendMindie) {
|
||||
return mindieConfig;
|
||||
}
|
||||
return [];
|
||||
}, [backend]);
|
||||
|
||||
@@ -136,6 +140,7 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
||||
link: 'https://docs.vllm.ai/en/stable/serving/openai_compatible_server.html#cli-reference'
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
}, [backend]);
|
||||
|
||||
|
||||
@@ -11,35 +11,23 @@ import styled from 'styled-components';
|
||||
import { modelCategoriesMap } from '../config';
|
||||
|
||||
const ApiAccessInfoWrapper = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
display: grid;
|
||||
padding-left: 20px;
|
||||
.item {
|
||||
grid-template-columns: max-content 1fr max-content;
|
||||
gap: 12px 0px;
|
||||
justify-items: start;
|
||||
align-items: center;
|
||||
.label {
|
||||
font-weight: 600;
|
||||
}
|
||||
.value {
|
||||
margin-left: 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.label-wrapper {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
.label {
|
||||
width: 86px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--ant-color-text-secondary);
|
||||
}
|
||||
}
|
||||
.copy-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
color: var(--ant-color-text-secondary);
|
||||
}
|
||||
.copy-btn {
|
||||
margin-left: 8px;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -129,67 +117,55 @@ const ApiAccessInfo = ({ open, data, onClose }: ApiAccessInfoProps) => {
|
||||
</dl>
|
||||
</Tips>
|
||||
<ApiAccessInfoWrapper>
|
||||
<div className="item">
|
||||
<span className="label-wrapper">
|
||||
<span className="label">
|
||||
{intl.formatMessage({ id: 'models.table.apiAccessInfo.enpoint' })}
|
||||
</span>
|
||||
<span className="value">
|
||||
<AutoTooltip ghost maxWidth={200}>
|
||||
{endPoint}
|
||||
</AutoTooltip>
|
||||
<APITAG color="geekblue">
|
||||
{intl.formatMessage({
|
||||
id: isRanker
|
||||
? 'models.table.apiAccessInfo.jinaCompatible'
|
||||
: 'models.table.apiAccessInfo.openaiCompatible'
|
||||
})}
|
||||
</APITAG>
|
||||
</span>
|
||||
</span>
|
||||
<span className="copy-btn">
|
||||
<CopyButton text={endPoint} type="link" size="small"></CopyButton>
|
||||
</span>
|
||||
</div>
|
||||
<div className="item">
|
||||
<span className="label-wrapper">
|
||||
<span className="label">
|
||||
{intl.formatMessage({
|
||||
id: 'models.table.apiAccessInfo.modelName'
|
||||
})}
|
||||
</span>
|
||||
<span className="value">
|
||||
<AutoTooltip ghost maxWidth={300}>
|
||||
{data.name}
|
||||
</AutoTooltip>
|
||||
</span>
|
||||
</span>
|
||||
<span className="copy-btn">
|
||||
<CopyButton text={data.name} type="link" size="small"></CopyButton>
|
||||
</span>
|
||||
</div>
|
||||
<div className="item">
|
||||
<span className="label-wrapper">
|
||||
<span className="label">
|
||||
{intl.formatMessage({ id: 'models.table.apiAccessInfo.apikey' })}
|
||||
</span>
|
||||
<span className="value">
|
||||
<CreateButton
|
||||
type="link"
|
||||
size="small"
|
||||
onClick={() => navigate('/api-keys')}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
id: 'models.table.apiAccessInfo.gotoCreate'
|
||||
})}
|
||||
<IconFont
|
||||
type="icon-external-link"
|
||||
className="font-size-14"
|
||||
></IconFont>
|
||||
</CreateButton>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<span className="label">
|
||||
{intl.formatMessage({ id: 'models.table.apiAccessInfo.enpoint' })}
|
||||
</span>
|
||||
<span className="value">
|
||||
<AutoTooltip ghost maxWidth={200}>
|
||||
{endPoint}
|
||||
</AutoTooltip>
|
||||
<APITAG color="geekblue">
|
||||
{intl.formatMessage({
|
||||
id: isRanker
|
||||
? 'models.table.apiAccessInfo.jinaCompatible'
|
||||
: 'models.table.apiAccessInfo.openaiCompatible'
|
||||
})}
|
||||
</APITAG>
|
||||
</span>
|
||||
<span className="copy-btn">
|
||||
<CopyButton text={endPoint} type="link" size="small"></CopyButton>
|
||||
</span>
|
||||
<span className="label">
|
||||
{intl.formatMessage({
|
||||
id: 'models.table.apiAccessInfo.modelName'
|
||||
})}
|
||||
</span>
|
||||
<span className="value">
|
||||
<AutoTooltip ghost maxWidth={300}>
|
||||
{data.name}
|
||||
</AutoTooltip>
|
||||
</span>
|
||||
<span className="copy-btn">
|
||||
<CopyButton text={data.name} type="link" size="small"></CopyButton>
|
||||
</span>
|
||||
<span className="label">
|
||||
{intl.formatMessage({ id: 'models.table.apiAccessInfo.apikey' })}
|
||||
</span>
|
||||
<span className="value">
|
||||
<CreateButton
|
||||
type="link"
|
||||
size="small"
|
||||
onClick={() => navigate('/api-keys')}
|
||||
>
|
||||
{intl.formatMessage({
|
||||
id: 'models.table.apiAccessInfo.gotoCreate'
|
||||
})}
|
||||
<IconFont
|
||||
type="icon-external-link"
|
||||
className="font-size-14"
|
||||
></IconFont>
|
||||
</CreateButton>
|
||||
</span>
|
||||
</ApiAccessInfoWrapper>
|
||||
</ScrollerModal>
|
||||
);
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
const options = [
|
||||
{
|
||||
label: '--log-level',
|
||||
value: '--log-level',
|
||||
options: ['Verbose', 'Info', 'Warning', 'Warn', 'Error', 'Debug']
|
||||
},
|
||||
{
|
||||
label: '--max-seq-len',
|
||||
value: '--max-seq-len'
|
||||
},
|
||||
{
|
||||
label: '--max-input-token-len',
|
||||
value: '--max-input-token-len'
|
||||
},
|
||||
{
|
||||
label: '--cpu-mem-size',
|
||||
value: '--cpu-mem-size'
|
||||
},
|
||||
{
|
||||
label: '--npu-memory-fraction',
|
||||
value: '--npu-memory-fraction'
|
||||
},
|
||||
{
|
||||
label: '--cache-block-size',
|
||||
value: '--cache-block-size'
|
||||
},
|
||||
{
|
||||
label: '--max-prefill-batch-size',
|
||||
value: '--max-prefill-batch-size'
|
||||
},
|
||||
{
|
||||
label: '--prefill-time-ms-per-req',
|
||||
value: '--prefill-time-ms-per-req',
|
||||
options: ['0', '1', '2', '3']
|
||||
},
|
||||
{
|
||||
label: '--prefill-policy-type',
|
||||
value: '--prefill-policy-type'
|
||||
},
|
||||
{
|
||||
label: '--max-batch-size',
|
||||
value: '--max-batch-size'
|
||||
},
|
||||
{
|
||||
label: '--decode-time-ms-per-req',
|
||||
value: '--decode-time-ms-per-req'
|
||||
},
|
||||
{
|
||||
label: '--decode-policy-type',
|
||||
value: '--decode-policy-type',
|
||||
options: ['0', '1', '2', '3']
|
||||
},
|
||||
{
|
||||
label: '--max-preempt-count',
|
||||
value: '--max-preempt-count'
|
||||
},
|
||||
{
|
||||
label: '--support-select-batch',
|
||||
value: '--support-select-batch'
|
||||
},
|
||||
{
|
||||
label: '--max-queue-delay-microseconds',
|
||||
value: '--max-queue-delay-microseconds'
|
||||
},
|
||||
{
|
||||
label: '--enable-prefix-caching',
|
||||
value: '--enable-prefix-caching'
|
||||
},
|
||||
{
|
||||
label: '--metrics',
|
||||
value: '--metrics'
|
||||
},
|
||||
{
|
||||
label: '--enforce-eager',
|
||||
value: '--enforce-eager'
|
||||
},
|
||||
{
|
||||
label: '--trust-remote-code',
|
||||
value: '--trust-remote-code'
|
||||
}
|
||||
];
|
||||
|
||||
const resultList = options.map((option) => {
|
||||
return {
|
||||
label: option.label,
|
||||
value: option.value,
|
||||
opts: option.options?.map((opt) => {
|
||||
return {
|
||||
label: opt,
|
||||
value: opt
|
||||
};
|
||||
})
|
||||
};
|
||||
});
|
||||
|
||||
export default resultList;
|
||||
@@ -95,9 +95,10 @@ const GPUList: React.FC = () => {
|
||||
title={intl.formatMessage({ id: 'common.table.name' })}
|
||||
dataIndex="name"
|
||||
key="name"
|
||||
width={240}
|
||||
render={(text, record) => {
|
||||
return (
|
||||
<AutoTooltip ghost style={{ width: '100%' }}>
|
||||
<AutoTooltip ghost maxWidth={240}>
|
||||
{text}
|
||||
</AutoTooltip>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user