fix(styles): providers access token

This commit is contained in:
jialin
2026-02-03 18:21:08 +08:00
parent 26e3a1944b
commit 497813eced
29 changed files with 294 additions and 106 deletions
+7 -29
View File
@@ -1,12 +1,5 @@
import IconFont from '@/components/icon-font';
import { StatusMaps } from '@/config';
import {
AudioOutlined,
EditOutlined,
PictureOutlined,
WechatWorkOutlined
} from '@ant-design/icons';
import React from 'react';
import { EditOutlined } from '@ant-design/icons';
import { backendOptionsMap } from './backend-parameters';
export const backendTipsList = [
@@ -299,42 +292,27 @@ export const modelCategoriesMap = {
export const categoryOptions = [
{
label: 'LLM',
value: modelCategoriesMap.llm,
icon: React.createElement(WechatWorkOutlined, { style: { color: 'green' } })
value: modelCategoriesMap.llm
},
{
label: 'Embedding',
value: modelCategoriesMap.embedding,
icon: React.createElement(IconFont, {
type: 'icon-cube',
style: { color: 'magenta' }
})
value: modelCategoriesMap.embedding
},
{
label: 'Reranker',
value: modelCategoriesMap.reranker,
icon: React.createElement(IconFont, {
type: 'icon-rank1',
style: { color: 'cyan' }
})
value: modelCategoriesMap.reranker
},
{
label: 'Image',
value: modelCategoriesMap.image,
icon: React.createElement(PictureOutlined, { style: { color: 'orange' } })
value: modelCategoriesMap.image
},
{
label: 'Text-to-Speech',
value: modelCategoriesMap.text_to_speech,
icon: React.createElement(IconFont, {
type: 'icon-sound-wave',
style: { color: 'geekblue' }
})
value: modelCategoriesMap.text_to_speech
},
{
label: 'Speech-to-Text',
value: modelCategoriesMap.speech_to_text,
icon: React.createElement(AudioOutlined, { style: { color: 'processing' } })
value: modelCategoriesMap.speech_to_text
}
];
+1
View File
@@ -44,6 +44,7 @@ export type SourceType =
export interface FormData {
image_name?: string;
run_command?: string;
enable_model_access?: boolean;
backend: string;
restart_on_error?: boolean;
env?: Record<string, any>;