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-face {
|
||||||
font-family: iconfont; /* Project id 4613488 */
|
font-family: iconfont; /* Project id 4613488 */
|
||||||
src:
|
src:
|
||||||
url('iconfont.woff2?t=1737340346059') format('woff2'),
|
url('iconfont.woff2?t=1744337857781') format('woff2'),
|
||||||
url('iconfont.woff?t=1737340346059') format('woff'),
|
url('iconfont.woff?t=1744337857781') format('woff'),
|
||||||
url('iconfont.ttf?t=1737340346059') format('truetype');
|
url('iconfont.ttf?t=1744337857781') format('truetype');
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconfont {
|
.iconfont {
|
||||||
@@ -14,6 +14,74 @@
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-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 {
|
.icon-SelectionInverse::before {
|
||||||
content: '\eace';
|
content: '\eace';
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -5,6 +5,125 @@
|
|||||||
"css_prefix_text": "icon-",
|
"css_prefix_text": "icon-",
|
||||||
"description": "",
|
"description": "",
|
||||||
"glyphs": [
|
"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",
|
"icon_id": "27116743",
|
||||||
"name": "SelectionInverse",
|
"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 { createFromIconfontCN } from '@ant-design/icons';
|
||||||
// import './iconfont/iconfont.js';
|
import './iconfont/iconfont.js';
|
||||||
|
|
||||||
const IconFont = createFromIconfontCN({
|
const IconFont = createFromIconfontCN({
|
||||||
scriptUrl: '//at.alicdn.com/t/c/font_4613488_hlvsvytu57b.js'
|
scriptUrl: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
export default IconFont;
|
export default IconFont;
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import {
|
|||||||
} from '../config';
|
} from '../config';
|
||||||
import { useFormContext } from '../config/form-context';
|
import { useFormContext } from '../config/form-context';
|
||||||
import llamaConfig from '../config/llama-config';
|
import llamaConfig from '../config/llama-config';
|
||||||
|
import mindieConfig from '../config/mindie-config';
|
||||||
import { FormData } from '../config/types';
|
import { FormData } from '../config/types';
|
||||||
import vllmConfig from '../config/vllm-config';
|
import vllmConfig from '../config/vllm-config';
|
||||||
import dataformStyles from '../style/data-form.less';
|
import dataformStyles from '../style/data-form.less';
|
||||||
@@ -118,6 +119,9 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
|||||||
if (backend === backendOptionsMap.vllm) {
|
if (backend === backendOptionsMap.vllm) {
|
||||||
return vllmConfig;
|
return vllmConfig;
|
||||||
}
|
}
|
||||||
|
if (backend === backendOptionsMap.ascendMindie) {
|
||||||
|
return mindieConfig;
|
||||||
|
}
|
||||||
return [];
|
return [];
|
||||||
}, [backend]);
|
}, [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'
|
link: 'https://docs.vllm.ai/en/stable/serving/openai_compatible_server.html#cli-reference'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}, [backend]);
|
}, [backend]);
|
||||||
|
|
||||||
|
|||||||
@@ -11,35 +11,23 @@ import styled from 'styled-components';
|
|||||||
import { modelCategoriesMap } from '../config';
|
import { modelCategoriesMap } from '../config';
|
||||||
|
|
||||||
const ApiAccessInfoWrapper = styled.div`
|
const ApiAccessInfoWrapper = styled.div`
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: column;
|
|
||||||
gap: 12px;
|
|
||||||
padding-left: 20px;
|
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;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
color: var(--ant-color-text-secondary);
|
||||||
.label-wrapper {
|
}
|
||||||
display: flex;
|
.copy-btn {
|
||||||
justify-content: flex-start;
|
margin-left: 8px;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -129,67 +117,55 @@ const ApiAccessInfo = ({ open, data, onClose }: ApiAccessInfoProps) => {
|
|||||||
</dl>
|
</dl>
|
||||||
</Tips>
|
</Tips>
|
||||||
<ApiAccessInfoWrapper>
|
<ApiAccessInfoWrapper>
|
||||||
<div className="item">
|
<span className="label">
|
||||||
<span className="label-wrapper">
|
{intl.formatMessage({ id: 'models.table.apiAccessInfo.enpoint' })}
|
||||||
<span className="label">
|
</span>
|
||||||
{intl.formatMessage({ id: 'models.table.apiAccessInfo.enpoint' })}
|
<span className="value">
|
||||||
</span>
|
<AutoTooltip ghost maxWidth={200}>
|
||||||
<span className="value">
|
{endPoint}
|
||||||
<AutoTooltip ghost maxWidth={200}>
|
</AutoTooltip>
|
||||||
{endPoint}
|
<APITAG color="geekblue">
|
||||||
</AutoTooltip>
|
{intl.formatMessage({
|
||||||
<APITAG color="geekblue">
|
id: isRanker
|
||||||
{intl.formatMessage({
|
? 'models.table.apiAccessInfo.jinaCompatible'
|
||||||
id: isRanker
|
: 'models.table.apiAccessInfo.openaiCompatible'
|
||||||
? 'models.table.apiAccessInfo.jinaCompatible'
|
})}
|
||||||
: 'models.table.apiAccessInfo.openaiCompatible'
|
</APITAG>
|
||||||
})}
|
</span>
|
||||||
</APITAG>
|
<span className="copy-btn">
|
||||||
</span>
|
<CopyButton text={endPoint} type="link" size="small"></CopyButton>
|
||||||
</span>
|
</span>
|
||||||
<span className="copy-btn">
|
<span className="label">
|
||||||
<CopyButton text={endPoint} type="link" size="small"></CopyButton>
|
{intl.formatMessage({
|
||||||
</span>
|
id: 'models.table.apiAccessInfo.modelName'
|
||||||
</div>
|
})}
|
||||||
<div className="item">
|
</span>
|
||||||
<span className="label-wrapper">
|
<span className="value">
|
||||||
<span className="label">
|
<AutoTooltip ghost maxWidth={300}>
|
||||||
{intl.formatMessage({
|
{data.name}
|
||||||
id: 'models.table.apiAccessInfo.modelName'
|
</AutoTooltip>
|
||||||
})}
|
</span>
|
||||||
</span>
|
<span className="copy-btn">
|
||||||
<span className="value">
|
<CopyButton text={data.name} type="link" size="small"></CopyButton>
|
||||||
<AutoTooltip ghost maxWidth={300}>
|
</span>
|
||||||
{data.name}
|
<span className="label">
|
||||||
</AutoTooltip>
|
{intl.formatMessage({ id: 'models.table.apiAccessInfo.apikey' })}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
<span className="value">
|
||||||
<span className="copy-btn">
|
<CreateButton
|
||||||
<CopyButton text={data.name} type="link" size="small"></CopyButton>
|
type="link"
|
||||||
</span>
|
size="small"
|
||||||
</div>
|
onClick={() => navigate('/api-keys')}
|
||||||
<div className="item">
|
>
|
||||||
<span className="label-wrapper">
|
{intl.formatMessage({
|
||||||
<span className="label">
|
id: 'models.table.apiAccessInfo.gotoCreate'
|
||||||
{intl.formatMessage({ id: 'models.table.apiAccessInfo.apikey' })}
|
})}
|
||||||
</span>
|
<IconFont
|
||||||
<span className="value">
|
type="icon-external-link"
|
||||||
<CreateButton
|
className="font-size-14"
|
||||||
type="link"
|
></IconFont>
|
||||||
size="small"
|
</CreateButton>
|
||||||
onClick={() => navigate('/api-keys')}
|
</span>
|
||||||
>
|
|
||||||
{intl.formatMessage({
|
|
||||||
id: 'models.table.apiAccessInfo.gotoCreate'
|
|
||||||
})}
|
|
||||||
<IconFont
|
|
||||||
type="icon-external-link"
|
|
||||||
className="font-size-14"
|
|
||||||
></IconFont>
|
|
||||||
</CreateButton>
|
|
||||||
</span>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</ApiAccessInfoWrapper>
|
</ApiAccessInfoWrapper>
|
||||||
</ScrollerModal>
|
</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' })}
|
title={intl.formatMessage({ id: 'common.table.name' })}
|
||||||
dataIndex="name"
|
dataIndex="name"
|
||||||
key="name"
|
key="name"
|
||||||
|
width={240}
|
||||||
render={(text, record) => {
|
render={(text, record) => {
|
||||||
return (
|
return (
|
||||||
<AutoTooltip ghost style={{ width: '100%' }}>
|
<AutoTooltip ghost maxWidth={240}>
|
||||||
{text}
|
{text}
|
||||||
</AutoTooltip>
|
</AutoTooltip>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user