chore: corex metax notes

This commit is contained in:
jialin
2026-02-12 14:56:25 +08:00
parent 9cb7145b4e
commit d1c1c5acf9
8 changed files with 40 additions and 26 deletions
@@ -14,6 +14,8 @@ const useFinishFailed = (options: FinishFailedOptions) => {
const handleOnFinishFailed = (errorInfo: any) => {
const { errorFields } = errorInfo;
console.log('Finish failed:', errorInfo);
if (errorFields && errorFields.length > 0) {
const collapseKeys: { sort: number; key: string }[] = [];
const names = errorFields.map((item: any) => item.name[0]);
@@ -47,6 +47,7 @@ const Content = styled.div`
width: 100%;
padding: 0 16px;
margin-top: 32px;
margin-bottom: 4px;
display: flex;
gap: 16px;
justify-content: center;
+1 -1
View File
@@ -33,7 +33,7 @@ const TABKeysMap = {
const requiredFields = {
[TABKeysMap.BASIC]: {
sort: 1,
fields: ['name', 'config.type', 'api_key']
fields: ['name', 'config', 'api_key']
},
[TABKeysMap.SUPPORTEDMODELS]: {
sort: 2,