diff --git a/frontend/src/entity/CommonEntity.ts b/frontend/src/entity/CommonEntity.ts new file mode 100644 index 0000000..a515e94 --- /dev/null +++ b/frontend/src/entity/CommonEntity.ts @@ -0,0 +1,21 @@ +export interface SelectOption { + label: string + value: string | number +} + +export const modelTypeOptions: SelectOption[] = [ + { label: '大语言模型', value: 0 }, + /* { label: 'Anthropic', value: 1 }, + { label: 'Baidu', value: 2 }, + { label: 'iFLYTEK', value: 3 }, + { label: 'Zhipu AI', value: 4 }, + { label: 'MiniMax', value: 5 }, + { label: 'Tencent', value: 6 }, + { label: 'Other', value: 7 }, */ +] + +export const getModelTypeName = (value: any) => { + const tv = parseInt(value) + const item = modelTypeOptions.find((item) => item.value === tv) + return item?.label || '' +}