chore: corex metax notes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user