@yuntijs/arcadia-bff-sdk 1.2.102 → 1.2.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +24 -0
- package/dist/cjs/sdk.d.ts +81 -0
- package/dist/cjs/sdk.js +35 -0
- package/dist/cjs/taro.d.ts +18 -0
- package/dist/esm/index.d.ts +24 -0
- package/dist/esm/sdk.d.ts +81 -0
- package/dist/esm/sdk.js +46 -34
- package/dist/esm/taro.d.ts +18 -0
- package/dist/umd/index.min.js +1 -1
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -601,6 +601,12 @@ export declare const sdk: {
|
|
|
601
601
|
updateContent(variables: import("./sdk").Exact<{
|
|
602
602
|
input: import("./sdk").UpdateContentInput;
|
|
603
603
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
604
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
605
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
606
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
607
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
608
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
609
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
604
610
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
605
611
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
606
612
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -1088,6 +1094,12 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
1088
1094
|
updateContent(variables: import("./sdk").Exact<{
|
|
1089
1095
|
input: import("./sdk").UpdateContentInput;
|
|
1090
1096
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
1097
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
1098
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
1099
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
1100
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
1101
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
1102
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
1091
1103
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
1092
1104
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
1093
1105
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -1787,6 +1799,12 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1787
1799
|
updateContent(variables: import("./sdk").Exact<{
|
|
1788
1800
|
input: import("./sdk").UpdateContentInput;
|
|
1789
1801
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
1802
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
1803
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
1804
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
1805
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
1806
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
1807
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
1790
1808
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
1791
1809
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
1792
1810
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -2486,6 +2504,12 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2486
2504
|
updateContent(variables: import("./sdk").Exact<{
|
|
2487
2505
|
input: import("./sdk").UpdateContentInput;
|
|
2488
2506
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
2507
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
2508
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
2509
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
2510
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
2511
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
2512
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
2489
2513
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
2490
2514
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
2491
2515
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
package/dist/cjs/sdk.d.ts
CHANGED
|
@@ -79,6 +79,10 @@ export type AddDataProcessInput = {
|
|
|
79
79
|
pre_data_set_version: Scalars['String']['input'];
|
|
80
80
|
version_data_set_name: Scalars['String']['input'];
|
|
81
81
|
};
|
|
82
|
+
export type AddShareGptContentInput = {
|
|
83
|
+
content: ShareGptContentTemplateInput;
|
|
84
|
+
versionID: Scalars['String']['input'];
|
|
85
|
+
};
|
|
82
86
|
export type AddVersionInput = {
|
|
83
87
|
/** 训练数据集ID */
|
|
84
88
|
dataSetID: Scalars['String']['input'];
|
|
@@ -739,6 +743,8 @@ export type CreateSftInput = {
|
|
|
739
743
|
type: Scalars['String']['input'];
|
|
740
744
|
};
|
|
741
745
|
export type CreateTuningDataSetInput = {
|
|
746
|
+
/** 训练数据集数据类型 */
|
|
747
|
+
dataType?: InputMaybe<Scalars['String']['input']>;
|
|
742
748
|
/** 训练数据集的名字 */
|
|
743
749
|
name: Scalars['String']['input'];
|
|
744
750
|
/** 训练数据集所在的namespace */
|
|
@@ -2993,6 +2999,24 @@ export type SelectorInput = {
|
|
|
2993
2999
|
matchExpressions?: InputMaybe<Array<InputMaybe<LabelSelectorRequirementInput>>>;
|
|
2994
3000
|
matchLabels?: InputMaybe<Scalars['Map']['input']>;
|
|
2995
3001
|
};
|
|
3002
|
+
export type ShareGptContentTemplate = {
|
|
3003
|
+
__typename?: 'ShareGPTContentTemplate';
|
|
3004
|
+
conversations: Array<ShareGptMessage>;
|
|
3005
|
+
system?: Maybe<Scalars['String']['output']>;
|
|
3006
|
+
};
|
|
3007
|
+
export type ShareGptContentTemplateInput = {
|
|
3008
|
+
conversations: Array<ShareGptMessageInput>;
|
|
3009
|
+
system?: InputMaybe<Scalars['String']['input']>;
|
|
3010
|
+
};
|
|
3011
|
+
export type ShareGptMessage = {
|
|
3012
|
+
__typename?: 'ShareGPTMessage';
|
|
3013
|
+
from: Scalars['String']['output'];
|
|
3014
|
+
value: Scalars['String']['output'];
|
|
3015
|
+
};
|
|
3016
|
+
export type ShareGptMessageInput = {
|
|
3017
|
+
From: Scalars['String']['input'];
|
|
3018
|
+
Value: Scalars['String']['input'];
|
|
3019
|
+
};
|
|
2996
3020
|
export type StructuredFileInfo = {
|
|
2997
3021
|
__typename?: 'StructuredFileInfo';
|
|
2998
3022
|
currentSheet: Scalars['String']['output'];
|
|
@@ -3010,6 +3034,8 @@ export type TuningDataSet = {
|
|
|
3010
3034
|
ID: Scalars['ID']['output'];
|
|
3011
3035
|
createdAt: Scalars['Time']['output'];
|
|
3012
3036
|
creator?: Maybe<Scalars['String']['output']>;
|
|
3037
|
+
/** 训练数据集的数据类型,alpaca 或 sharegpt,不填则默认为 alpaca */
|
|
3038
|
+
dataType?: Maybe<Scalars['String']['output']>;
|
|
3013
3039
|
/** 训练数据集名字 */
|
|
3014
3040
|
name: Scalars['String']['output'];
|
|
3015
3041
|
/** 训练数据集所在的namespace */
|
|
@@ -3023,6 +3049,7 @@ export type TuningDataSet = {
|
|
|
3023
3049
|
export type TuningDataSetMutation = {
|
|
3024
3050
|
__typename?: 'TuningDataSetMutation';
|
|
3025
3051
|
addContent?: Maybe<Scalars['Void']['output']>;
|
|
3052
|
+
addShareGPTContent?: Maybe<Scalars['Void']['output']>;
|
|
3026
3053
|
addVersion: Scalars['String']['output'];
|
|
3027
3054
|
createTuningDataSet: CreateTuningDatasetOutput;
|
|
3028
3055
|
deleteContent?: Maybe<Scalars['Void']['output']>;
|
|
@@ -3031,11 +3058,15 @@ export type TuningDataSetMutation = {
|
|
|
3031
3058
|
deleteVersions?: Maybe<Scalars['Void']['output']>;
|
|
3032
3059
|
loadVersionFiles?: Maybe<Scalars['Void']['output']>;
|
|
3033
3060
|
updateContent?: Maybe<Scalars['Void']['output']>;
|
|
3061
|
+
updateShareGPTContent?: Maybe<Scalars['Void']['output']>;
|
|
3034
3062
|
updateTuningDataSet?: Maybe<Scalars['Void']['output']>;
|
|
3035
3063
|
};
|
|
3036
3064
|
export type TuningDataSetMutationAddContentArgs = {
|
|
3037
3065
|
input: AddContentInput;
|
|
3038
3066
|
};
|
|
3067
|
+
export type TuningDataSetMutationAddShareGptContentArgs = {
|
|
3068
|
+
input: AddShareGptContentInput;
|
|
3069
|
+
};
|
|
3039
3070
|
export type TuningDataSetMutationAddVersionArgs = {
|
|
3040
3071
|
input: AddVersionInput;
|
|
3041
3072
|
};
|
|
@@ -3061,6 +3092,9 @@ export type TuningDataSetMutationLoadVersionFilesArgs = {
|
|
|
3061
3092
|
export type TuningDataSetMutationUpdateContentArgs = {
|
|
3062
3093
|
input: UpdateContentInput;
|
|
3063
3094
|
};
|
|
3095
|
+
export type TuningDataSetMutationUpdateShareGptContentArgs = {
|
|
3096
|
+
input: UpdateShareGptContentInput;
|
|
3097
|
+
};
|
|
3064
3098
|
export type TuningDataSetMutationUpdateTuningDataSetArgs = {
|
|
3065
3099
|
id: Scalars['String']['input'];
|
|
3066
3100
|
newName: Scalars['String']['input'];
|
|
@@ -3114,6 +3148,8 @@ export type TuningVersionedDatasetContent = {
|
|
|
3114
3148
|
createdAt: Scalars['Time']['output'];
|
|
3115
3149
|
/** 训练数据集版本的具体数据 */
|
|
3116
3150
|
data: ContentTemplate;
|
|
3151
|
+
/** 训练数据集版本的 ShareGPT 格式数据的具体内容 */
|
|
3152
|
+
shareGPTData: ShareGptContentTemplate;
|
|
3117
3153
|
updatedAt: Scalars['Time']['output'];
|
|
3118
3154
|
};
|
|
3119
3155
|
export type TuningVersionedDatasetFiles = {
|
|
@@ -3506,6 +3542,10 @@ export type UpdateSftInput = {
|
|
|
3506
3542
|
suspend?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3507
3543
|
type?: InputMaybe<Scalars['String']['input']>;
|
|
3508
3544
|
};
|
|
3545
|
+
export type UpdateShareGptContentInput = {
|
|
3546
|
+
content: ShareGptContentTemplateInput;
|
|
3547
|
+
contentID: Scalars['String']['input'];
|
|
3548
|
+
};
|
|
3509
3549
|
export type UpdateVersionedDatasetInput = {
|
|
3510
3550
|
/** 传递方式同label */
|
|
3511
3551
|
annotations?: InputMaybe<Scalars['Map']['input']>;
|
|
@@ -7997,6 +8037,7 @@ export type ListTuningDataSetQuery = {
|
|
|
7997
8037
|
namespace: string;
|
|
7998
8038
|
creator?: string | null;
|
|
7999
8039
|
type: string;
|
|
8040
|
+
dataType?: string | null;
|
|
8000
8041
|
createdAt: any;
|
|
8001
8042
|
updatedAt: any;
|
|
8002
8043
|
versions: {
|
|
@@ -8099,6 +8140,7 @@ export type GetTuningDataSetQuery = {
|
|
|
8099
8140
|
namespace: string;
|
|
8100
8141
|
creator?: string | null;
|
|
8101
8142
|
type: string;
|
|
8143
|
+
dataType?: string | null;
|
|
8102
8144
|
createdAt: any;
|
|
8103
8145
|
updatedAt: any;
|
|
8104
8146
|
versions: {
|
|
@@ -8336,6 +8378,15 @@ export type GetVersionContentQuery = {
|
|
|
8336
8378
|
system?: string | null;
|
|
8337
8379
|
history?: Array<Array<string> | null> | null;
|
|
8338
8380
|
};
|
|
8381
|
+
shareGPTData: {
|
|
8382
|
+
__typename?: 'ShareGPTContentTemplate';
|
|
8383
|
+
system?: string | null;
|
|
8384
|
+
conversations: Array<{
|
|
8385
|
+
__typename?: 'ShareGPTMessage';
|
|
8386
|
+
from: string;
|
|
8387
|
+
value: string;
|
|
8388
|
+
}>;
|
|
8389
|
+
};
|
|
8339
8390
|
} | {
|
|
8340
8391
|
__typename?: 'TuningVersionedDatasetFiles';
|
|
8341
8392
|
} | {
|
|
@@ -8423,6 +8474,26 @@ export type UpdateContentMutation = {
|
|
|
8423
8474
|
updateContent?: any | null;
|
|
8424
8475
|
} | null;
|
|
8425
8476
|
};
|
|
8477
|
+
export type AddShareGptContentMutationVariables = Exact<{
|
|
8478
|
+
input: AddShareGptContentInput;
|
|
8479
|
+
}>;
|
|
8480
|
+
export type AddShareGptContentMutation = {
|
|
8481
|
+
__typename?: 'Mutation';
|
|
8482
|
+
TuningDataSet?: {
|
|
8483
|
+
__typename?: 'TuningDataSetMutation';
|
|
8484
|
+
addShareGPTContent?: any | null;
|
|
8485
|
+
} | null;
|
|
8486
|
+
};
|
|
8487
|
+
export type UpdateShareGptContentMutationVariables = Exact<{
|
|
8488
|
+
input: UpdateShareGptContentInput;
|
|
8489
|
+
}>;
|
|
8490
|
+
export type UpdateShareGptContentMutation = {
|
|
8491
|
+
__typename?: 'Mutation';
|
|
8492
|
+
TuningDataSet?: {
|
|
8493
|
+
__typename?: 'TuningDataSetMutation';
|
|
8494
|
+
updateShareGPTContent?: any | null;
|
|
8495
|
+
} | null;
|
|
8496
|
+
};
|
|
8426
8497
|
export type DeleteContentMutationVariables = Exact<{
|
|
8427
8498
|
contentIDs?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
8428
8499
|
}>;
|
|
@@ -9991,6 +10062,8 @@ export declare const AddVersionDocument: import("../node_modules/.pnpm/graphql@1
|
|
|
9991
10062
|
export declare const DeleteVersionsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9992
10063
|
export declare const AddContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9993
10064
|
export declare const UpdateContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10065
|
+
export declare const AddShareGptContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10066
|
+
export declare const UpdateShareGptContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9994
10067
|
export declare const DeleteContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9995
10068
|
export declare const DeleteVersionAllContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9996
10069
|
export declare const LoadVersionFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -10132,6 +10205,8 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
10132
10205
|
deleteVersions(variables?: DeleteVersionsMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionsMutation>;
|
|
10133
10206
|
addContent(variables: AddContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<AddContentMutation>;
|
|
10134
10207
|
updateContent(variables: UpdateContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateContentMutation>;
|
|
10208
|
+
addShareGPTContent(variables: AddShareGptContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<AddShareGptContentMutation>;
|
|
10209
|
+
updateShareGPTContent(variables: UpdateShareGptContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateShareGptContentMutation>;
|
|
10135
10210
|
deleteContent(variables?: DeleteContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteContentMutation>;
|
|
10136
10211
|
deleteVersionAllContent(variables: DeleteVersionAllContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionAllContentMutation>;
|
|
10137
10212
|
loadVersionFiles(variables: LoadVersionFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<LoadVersionFilesMutation>;
|
|
@@ -10590,6 +10665,12 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
10590
10665
|
updateContent(variables: Exact<{
|
|
10591
10666
|
input: UpdateContentInput;
|
|
10592
10667
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateContentMutation>;
|
|
10668
|
+
addShareGPTContent(variables: Exact<{
|
|
10669
|
+
input: AddShareGptContentInput;
|
|
10670
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<AddShareGptContentMutation>;
|
|
10671
|
+
updateShareGPTContent(variables: Exact<{
|
|
10672
|
+
input: UpdateShareGptContentInput;
|
|
10673
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateShareGptContentMutation>;
|
|
10593
10674
|
deleteContent(variables?: Exact<{
|
|
10594
10675
|
contentIDs?: InputMaybe<string | string[]> | undefined;
|
|
10595
10676
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteContentMutation>;
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
var sdk_exports = {};
|
|
31
31
|
__export(sdk_exports, {
|
|
32
32
|
AddContentDocument: () => AddContentDocument,
|
|
33
|
+
AddShareGptContentDocument: () => AddShareGptContentDocument,
|
|
33
34
|
AddVersionDocument: () => AddVersionDocument,
|
|
34
35
|
AllDataProcessListByCountDocument: () => AllDataProcessListByCountDocument,
|
|
35
36
|
AllDataProcessListByPageDocument: () => AllDataProcessListByPageDocument,
|
|
@@ -165,6 +166,7 @@ __export(sdk_exports, {
|
|
|
165
166
|
UpdatePluginDocument: () => UpdatePluginDocument,
|
|
166
167
|
UpdateRagDocument: () => UpdateRagDocument,
|
|
167
168
|
UpdateSftDocument: () => UpdateSftDocument,
|
|
169
|
+
UpdateShareGptContentDocument: () => UpdateShareGptContentDocument,
|
|
168
170
|
UpdateTuningDataSetDocument: () => UpdateTuningDataSetDocument,
|
|
169
171
|
UpdateVersionedDatasetDocument: () => UpdateVersionedDatasetDocument,
|
|
170
172
|
UpdateWorkerDocument: () => UpdateWorkerDocument,
|
|
@@ -2469,6 +2471,7 @@ var ListTuningDataSetDocument = import_graphql_tag.default`
|
|
|
2469
2471
|
namespace
|
|
2470
2472
|
creator
|
|
2471
2473
|
type
|
|
2474
|
+
dataType
|
|
2472
2475
|
createdAt
|
|
2473
2476
|
updatedAt
|
|
2474
2477
|
versions {
|
|
@@ -2500,6 +2503,7 @@ var GetTuningDataSetDocument = import_graphql_tag.default`
|
|
|
2500
2503
|
namespace
|
|
2501
2504
|
creator
|
|
2502
2505
|
type
|
|
2506
|
+
dataType
|
|
2503
2507
|
createdAt
|
|
2504
2508
|
updatedAt
|
|
2505
2509
|
versions {
|
|
@@ -2565,6 +2569,15 @@ var GetVersionContentDocument = import_graphql_tag.default`
|
|
|
2565
2569
|
system
|
|
2566
2570
|
history
|
|
2567
2571
|
}
|
|
2572
|
+
shareGPTData {
|
|
2573
|
+
conversations {
|
|
2574
|
+
... on ShareGPTMessage {
|
|
2575
|
+
from
|
|
2576
|
+
value
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
system
|
|
2580
|
+
}
|
|
2568
2581
|
createdAt
|
|
2569
2582
|
updatedAt
|
|
2570
2583
|
}
|
|
@@ -2625,6 +2638,20 @@ var UpdateContentDocument = import_graphql_tag.default`
|
|
|
2625
2638
|
}
|
|
2626
2639
|
}
|
|
2627
2640
|
`;
|
|
2641
|
+
var AddShareGptContentDocument = import_graphql_tag.default`
|
|
2642
|
+
mutation addShareGPTContent($input: AddShareGPTContentInput!) {
|
|
2643
|
+
TuningDataSet {
|
|
2644
|
+
addShareGPTContent(input: $input)
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
`;
|
|
2648
|
+
var UpdateShareGptContentDocument = import_graphql_tag.default`
|
|
2649
|
+
mutation updateShareGPTContent($input: UpdateShareGPTContentInput!) {
|
|
2650
|
+
TuningDataSet {
|
|
2651
|
+
updateShareGPTContent(input: $input)
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
`;
|
|
2628
2655
|
var DeleteContentDocument = import_graphql_tag.default`
|
|
2629
2656
|
mutation deleteContent($contentIDs: [String!]) {
|
|
2630
2657
|
TuningDataSet {
|
|
@@ -3906,6 +3933,12 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3906
3933
|
updateContent(variables, requestHeaders) {
|
|
3907
3934
|
return withWrapper((wrappedRequestHeaders) => client.request(UpdateContentDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateContent", "mutation", variables);
|
|
3908
3935
|
},
|
|
3936
|
+
addShareGPTContent(variables, requestHeaders) {
|
|
3937
|
+
return withWrapper((wrappedRequestHeaders) => client.request(AddShareGptContentDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "addShareGPTContent", "mutation", variables);
|
|
3938
|
+
},
|
|
3939
|
+
updateShareGPTContent(variables, requestHeaders) {
|
|
3940
|
+
return withWrapper((wrappedRequestHeaders) => client.request(UpdateShareGptContentDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "updateShareGPTContent", "mutation", variables);
|
|
3941
|
+
},
|
|
3909
3942
|
deleteContent(variables, requestHeaders) {
|
|
3910
3943
|
return withWrapper((wrappedRequestHeaders) => client.request(DeleteContentDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "deleteContent", "mutation", variables);
|
|
3911
3944
|
},
|
|
@@ -4203,6 +4236,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
4203
4236
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4204
4237
|
0 && (module.exports = {
|
|
4205
4238
|
AddContentDocument,
|
|
4239
|
+
AddShareGptContentDocument,
|
|
4206
4240
|
AddVersionDocument,
|
|
4207
4241
|
AllDataProcessListByCountDocument,
|
|
4208
4242
|
AllDataProcessListByPageDocument,
|
|
@@ -4338,6 +4372,7 @@ function getSdkWithHooks(client, withWrapper = defaultWrapper) {
|
|
|
4338
4372
|
UpdatePluginDocument,
|
|
4339
4373
|
UpdateRagDocument,
|
|
4340
4374
|
UpdateSftDocument,
|
|
4375
|
+
UpdateShareGptContentDocument,
|
|
4341
4376
|
UpdateTuningDataSetDocument,
|
|
4342
4377
|
UpdateVersionedDatasetDocument,
|
|
4343
4378
|
UpdateWorkerDocument,
|
package/dist/cjs/taro.d.ts
CHANGED
|
@@ -392,6 +392,12 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
392
392
|
updateContent(variables: import("./sdk").Exact<{
|
|
393
393
|
input: import("./sdk").UpdateContentInput;
|
|
394
394
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
395
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
396
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
397
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
398
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
399
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
400
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
395
401
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
396
402
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
397
403
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -1091,6 +1097,12 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1091
1097
|
updateContent(variables: import("./sdk").Exact<{
|
|
1092
1098
|
input: import("./sdk").UpdateContentInput;
|
|
1093
1099
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
1100
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
1101
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
1102
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
1103
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
1104
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
1105
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
1094
1106
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
1095
1107
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
1096
1108
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -1790,6 +1802,12 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
1790
1802
|
updateContent(variables: import("./sdk").Exact<{
|
|
1791
1803
|
input: import("./sdk").UpdateContentInput;
|
|
1792
1804
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
1805
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
1806
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
1807
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
1808
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
1809
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
1810
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
1793
1811
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
1794
1812
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
1795
1813
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -601,6 +601,12 @@ export declare const sdk: {
|
|
|
601
601
|
updateContent(variables: import("./sdk").Exact<{
|
|
602
602
|
input: import("./sdk").UpdateContentInput;
|
|
603
603
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
604
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
605
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
606
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
607
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
608
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
609
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
604
610
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
605
611
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
606
612
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -1088,6 +1094,12 @@ export declare const initSdk: (options?: SdkOptions) => {
|
|
|
1088
1094
|
updateContent(variables: import("./sdk").Exact<{
|
|
1089
1095
|
input: import("./sdk").UpdateContentInput;
|
|
1090
1096
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
1097
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
1098
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
1099
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
1100
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
1101
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
1102
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
1091
1103
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
1092
1104
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
1093
1105
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -1787,6 +1799,12 @@ export declare const initSdkWithHooks: (options?: SdkOptions) => {
|
|
|
1787
1799
|
updateContent(variables: import("./sdk").Exact<{
|
|
1788
1800
|
input: import("./sdk").UpdateContentInput;
|
|
1789
1801
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
1802
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
1803
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
1804
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
1805
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
1806
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
1807
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
1790
1808
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
1791
1809
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
1792
1810
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
|
@@ -2486,6 +2504,12 @@ export declare const useSdk: (options?: SdkOptions) => {
|
|
|
2486
2504
|
updateContent(variables: import("./sdk").Exact<{
|
|
2487
2505
|
input: import("./sdk").UpdateContentInput;
|
|
2488
2506
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateContentMutation>;
|
|
2507
|
+
addShareGPTContent(variables: import("./sdk").Exact<{
|
|
2508
|
+
input: import("./sdk").AddShareGptContentInput;
|
|
2509
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").AddShareGptContentMutation>;
|
|
2510
|
+
updateShareGPTContent(variables: import("./sdk").Exact<{
|
|
2511
|
+
input: import("./sdk").UpdateShareGptContentInput;
|
|
2512
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").UpdateShareGptContentMutation>;
|
|
2489
2513
|
deleteContent(variables?: import("./sdk").Exact<{
|
|
2490
2514
|
contentIDs?: import("./sdk").InputMaybe<string | string[]> | undefined;
|
|
2491
2515
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<import("./sdk").DeleteContentMutation>;
|
package/dist/esm/sdk.d.ts
CHANGED
|
@@ -79,6 +79,10 @@ export type AddDataProcessInput = {
|
|
|
79
79
|
pre_data_set_version: Scalars['String']['input'];
|
|
80
80
|
version_data_set_name: Scalars['String']['input'];
|
|
81
81
|
};
|
|
82
|
+
export type AddShareGptContentInput = {
|
|
83
|
+
content: ShareGptContentTemplateInput;
|
|
84
|
+
versionID: Scalars['String']['input'];
|
|
85
|
+
};
|
|
82
86
|
export type AddVersionInput = {
|
|
83
87
|
/** 训练数据集ID */
|
|
84
88
|
dataSetID: Scalars['String']['input'];
|
|
@@ -739,6 +743,8 @@ export type CreateSftInput = {
|
|
|
739
743
|
type: Scalars['String']['input'];
|
|
740
744
|
};
|
|
741
745
|
export type CreateTuningDataSetInput = {
|
|
746
|
+
/** 训练数据集数据类型 */
|
|
747
|
+
dataType?: InputMaybe<Scalars['String']['input']>;
|
|
742
748
|
/** 训练数据集的名字 */
|
|
743
749
|
name: Scalars['String']['input'];
|
|
744
750
|
/** 训练数据集所在的namespace */
|
|
@@ -2993,6 +2999,24 @@ export type SelectorInput = {
|
|
|
2993
2999
|
matchExpressions?: InputMaybe<Array<InputMaybe<LabelSelectorRequirementInput>>>;
|
|
2994
3000
|
matchLabels?: InputMaybe<Scalars['Map']['input']>;
|
|
2995
3001
|
};
|
|
3002
|
+
export type ShareGptContentTemplate = {
|
|
3003
|
+
__typename?: 'ShareGPTContentTemplate';
|
|
3004
|
+
conversations: Array<ShareGptMessage>;
|
|
3005
|
+
system?: Maybe<Scalars['String']['output']>;
|
|
3006
|
+
};
|
|
3007
|
+
export type ShareGptContentTemplateInput = {
|
|
3008
|
+
conversations: Array<ShareGptMessageInput>;
|
|
3009
|
+
system?: InputMaybe<Scalars['String']['input']>;
|
|
3010
|
+
};
|
|
3011
|
+
export type ShareGptMessage = {
|
|
3012
|
+
__typename?: 'ShareGPTMessage';
|
|
3013
|
+
from: Scalars['String']['output'];
|
|
3014
|
+
value: Scalars['String']['output'];
|
|
3015
|
+
};
|
|
3016
|
+
export type ShareGptMessageInput = {
|
|
3017
|
+
From: Scalars['String']['input'];
|
|
3018
|
+
Value: Scalars['String']['input'];
|
|
3019
|
+
};
|
|
2996
3020
|
export type StructuredFileInfo = {
|
|
2997
3021
|
__typename?: 'StructuredFileInfo';
|
|
2998
3022
|
currentSheet: Scalars['String']['output'];
|
|
@@ -3010,6 +3034,8 @@ export type TuningDataSet = {
|
|
|
3010
3034
|
ID: Scalars['ID']['output'];
|
|
3011
3035
|
createdAt: Scalars['Time']['output'];
|
|
3012
3036
|
creator?: Maybe<Scalars['String']['output']>;
|
|
3037
|
+
/** 训练数据集的数据类型,alpaca 或 sharegpt,不填则默认为 alpaca */
|
|
3038
|
+
dataType?: Maybe<Scalars['String']['output']>;
|
|
3013
3039
|
/** 训练数据集名字 */
|
|
3014
3040
|
name: Scalars['String']['output'];
|
|
3015
3041
|
/** 训练数据集所在的namespace */
|
|
@@ -3023,6 +3049,7 @@ export type TuningDataSet = {
|
|
|
3023
3049
|
export type TuningDataSetMutation = {
|
|
3024
3050
|
__typename?: 'TuningDataSetMutation';
|
|
3025
3051
|
addContent?: Maybe<Scalars['Void']['output']>;
|
|
3052
|
+
addShareGPTContent?: Maybe<Scalars['Void']['output']>;
|
|
3026
3053
|
addVersion: Scalars['String']['output'];
|
|
3027
3054
|
createTuningDataSet: CreateTuningDatasetOutput;
|
|
3028
3055
|
deleteContent?: Maybe<Scalars['Void']['output']>;
|
|
@@ -3031,11 +3058,15 @@ export type TuningDataSetMutation = {
|
|
|
3031
3058
|
deleteVersions?: Maybe<Scalars['Void']['output']>;
|
|
3032
3059
|
loadVersionFiles?: Maybe<Scalars['Void']['output']>;
|
|
3033
3060
|
updateContent?: Maybe<Scalars['Void']['output']>;
|
|
3061
|
+
updateShareGPTContent?: Maybe<Scalars['Void']['output']>;
|
|
3034
3062
|
updateTuningDataSet?: Maybe<Scalars['Void']['output']>;
|
|
3035
3063
|
};
|
|
3036
3064
|
export type TuningDataSetMutationAddContentArgs = {
|
|
3037
3065
|
input: AddContentInput;
|
|
3038
3066
|
};
|
|
3067
|
+
export type TuningDataSetMutationAddShareGptContentArgs = {
|
|
3068
|
+
input: AddShareGptContentInput;
|
|
3069
|
+
};
|
|
3039
3070
|
export type TuningDataSetMutationAddVersionArgs = {
|
|
3040
3071
|
input: AddVersionInput;
|
|
3041
3072
|
};
|
|
@@ -3061,6 +3092,9 @@ export type TuningDataSetMutationLoadVersionFilesArgs = {
|
|
|
3061
3092
|
export type TuningDataSetMutationUpdateContentArgs = {
|
|
3062
3093
|
input: UpdateContentInput;
|
|
3063
3094
|
};
|
|
3095
|
+
export type TuningDataSetMutationUpdateShareGptContentArgs = {
|
|
3096
|
+
input: UpdateShareGptContentInput;
|
|
3097
|
+
};
|
|
3064
3098
|
export type TuningDataSetMutationUpdateTuningDataSetArgs = {
|
|
3065
3099
|
id: Scalars['String']['input'];
|
|
3066
3100
|
newName: Scalars['String']['input'];
|
|
@@ -3114,6 +3148,8 @@ export type TuningVersionedDatasetContent = {
|
|
|
3114
3148
|
createdAt: Scalars['Time']['output'];
|
|
3115
3149
|
/** 训练数据集版本的具体数据 */
|
|
3116
3150
|
data: ContentTemplate;
|
|
3151
|
+
/** 训练数据集版本的 ShareGPT 格式数据的具体内容 */
|
|
3152
|
+
shareGPTData: ShareGptContentTemplate;
|
|
3117
3153
|
updatedAt: Scalars['Time']['output'];
|
|
3118
3154
|
};
|
|
3119
3155
|
export type TuningVersionedDatasetFiles = {
|
|
@@ -3506,6 +3542,10 @@ export type UpdateSftInput = {
|
|
|
3506
3542
|
suspend?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3507
3543
|
type?: InputMaybe<Scalars['String']['input']>;
|
|
3508
3544
|
};
|
|
3545
|
+
export type UpdateShareGptContentInput = {
|
|
3546
|
+
content: ShareGptContentTemplateInput;
|
|
3547
|
+
contentID: Scalars['String']['input'];
|
|
3548
|
+
};
|
|
3509
3549
|
export type UpdateVersionedDatasetInput = {
|
|
3510
3550
|
/** 传递方式同label */
|
|
3511
3551
|
annotations?: InputMaybe<Scalars['Map']['input']>;
|
|
@@ -7997,6 +8037,7 @@ export type ListTuningDataSetQuery = {
|
|
|
7997
8037
|
namespace: string;
|
|
7998
8038
|
creator?: string | null;
|
|
7999
8039
|
type: string;
|
|
8040
|
+
dataType?: string | null;
|
|
8000
8041
|
createdAt: any;
|
|
8001
8042
|
updatedAt: any;
|
|
8002
8043
|
versions: {
|
|
@@ -8099,6 +8140,7 @@ export type GetTuningDataSetQuery = {
|
|
|
8099
8140
|
namespace: string;
|
|
8100
8141
|
creator?: string | null;
|
|
8101
8142
|
type: string;
|
|
8143
|
+
dataType?: string | null;
|
|
8102
8144
|
createdAt: any;
|
|
8103
8145
|
updatedAt: any;
|
|
8104
8146
|
versions: {
|
|
@@ -8336,6 +8378,15 @@ export type GetVersionContentQuery = {
|
|
|
8336
8378
|
system?: string | null;
|
|
8337
8379
|
history?: Array<Array<string> | null> | null;
|
|
8338
8380
|
};
|
|
8381
|
+
shareGPTData: {
|
|
8382
|
+
__typename?: 'ShareGPTContentTemplate';
|
|
8383
|
+
system?: string | null;
|
|
8384
|
+
conversations: Array<{
|
|
8385
|
+
__typename?: 'ShareGPTMessage';
|
|
8386
|
+
from: string;
|
|
8387
|
+
value: string;
|
|
8388
|
+
}>;
|
|
8389
|
+
};
|
|
8339
8390
|
} | {
|
|
8340
8391
|
__typename?: 'TuningVersionedDatasetFiles';
|
|
8341
8392
|
} | {
|
|
@@ -8423,6 +8474,26 @@ export type UpdateContentMutation = {
|
|
|
8423
8474
|
updateContent?: any | null;
|
|
8424
8475
|
} | null;
|
|
8425
8476
|
};
|
|
8477
|
+
export type AddShareGptContentMutationVariables = Exact<{
|
|
8478
|
+
input: AddShareGptContentInput;
|
|
8479
|
+
}>;
|
|
8480
|
+
export type AddShareGptContentMutation = {
|
|
8481
|
+
__typename?: 'Mutation';
|
|
8482
|
+
TuningDataSet?: {
|
|
8483
|
+
__typename?: 'TuningDataSetMutation';
|
|
8484
|
+
addShareGPTContent?: any | null;
|
|
8485
|
+
} | null;
|
|
8486
|
+
};
|
|
8487
|
+
export type UpdateShareGptContentMutationVariables = Exact<{
|
|
8488
|
+
input: UpdateShareGptContentInput;
|
|
8489
|
+
}>;
|
|
8490
|
+
export type UpdateShareGptContentMutation = {
|
|
8491
|
+
__typename?: 'Mutation';
|
|
8492
|
+
TuningDataSet?: {
|
|
8493
|
+
__typename?: 'TuningDataSetMutation';
|
|
8494
|
+
updateShareGPTContent?: any | null;
|
|
8495
|
+
} | null;
|
|
8496
|
+
};
|
|
8426
8497
|
export type DeleteContentMutationVariables = Exact<{
|
|
8427
8498
|
contentIDs?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
8428
8499
|
}>;
|
|
@@ -9991,6 +10062,8 @@ export declare const AddVersionDocument: import("../node_modules/.pnpm/graphql@1
|
|
|
9991
10062
|
export declare const DeleteVersionsDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9992
10063
|
export declare const AddContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9993
10064
|
export declare const UpdateContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10065
|
+
export declare const AddShareGptContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
10066
|
+
export declare const UpdateShareGptContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9994
10067
|
export declare const DeleteContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9995
10068
|
export declare const DeleteVersionAllContentDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
9996
10069
|
export declare const LoadVersionFilesDocument: import("../node_modules/.pnpm/graphql@16.8.1/node_modules/graphql/index.d.ts").DocumentNode;
|
|
@@ -10132,6 +10205,8 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
10132
10205
|
deleteVersions(variables?: DeleteVersionsMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionsMutation>;
|
|
10133
10206
|
addContent(variables: AddContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<AddContentMutation>;
|
|
10134
10207
|
updateContent(variables: UpdateContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateContentMutation>;
|
|
10208
|
+
addShareGPTContent(variables: AddShareGptContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<AddShareGptContentMutation>;
|
|
10209
|
+
updateShareGPTContent(variables: UpdateShareGptContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<UpdateShareGptContentMutation>;
|
|
10135
10210
|
deleteContent(variables?: DeleteContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteContentMutation>;
|
|
10136
10211
|
deleteVersionAllContent(variables: DeleteVersionAllContentMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<DeleteVersionAllContentMutation>;
|
|
10137
10212
|
loadVersionFiles(variables: LoadVersionFilesMutationVariables, requestHeaders?: RequestConfig['headers']): Promise<LoadVersionFilesMutation>;
|
|
@@ -10590,6 +10665,12 @@ export declare function getSdkWithHooks(client: GraphQLClient, withWrapper?: Sdk
|
|
|
10590
10665
|
updateContent(variables: Exact<{
|
|
10591
10666
|
input: UpdateContentInput;
|
|
10592
10667
|
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateContentMutation>;
|
|
10668
|
+
addShareGPTContent(variables: Exact<{
|
|
10669
|
+
input: AddShareGptContentInput;
|
|
10670
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<AddShareGptContentMutation>;
|
|
10671
|
+
updateShareGPTContent(variables: Exact<{
|
|
10672
|
+
input: UpdateShareGptContentInput;
|
|
10673
|
+
}>, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<UpdateShareGptContentMutation>;
|
|
10593
10674
|
deleteContent(variables?: Exact<{
|
|
10594
10675
|
contentIDs?: InputMaybe<string | string[]> | undefined;
|
|
10595
10676
|
}> | undefined, requestHeaders?: import("graphql-request/src/types").MaybeFunction<(import("graphql-request/src/types.dom").Headers | Record<string, string> | string[][]) | undefined>): Promise<DeleteContentMutation>;
|