mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +08:00
fix: api dataset (#6551)
* fix: api dataset * Update packages/global/core/chat/type.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -32,7 +32,7 @@ export enum QueueNames {
|
||||
datasetDelete = 'datasetDelete',
|
||||
appDelete = 'appDelete',
|
||||
teamDelete = 'teamDelete',
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
websiteSync = 'websiteSync'
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ const ChatItemSchema = new Schema({
|
||||
default: null
|
||||
},
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
[DispatchNodeResponseKeyEnum.nodeResponse]: Array
|
||||
});
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ const ChatSchema = new Schema({
|
||||
select: false
|
||||
},
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
userId: Schema.Types.ObjectId
|
||||
});
|
||||
|
||||
|
||||
@@ -49,8 +49,9 @@ const SystemToolSchema = new Schema({
|
||||
enum: UserTagsEnum.enum
|
||||
},
|
||||
|
||||
// @deprecated
|
||||
/** @deprecated */
|
||||
inputConfig: Array,
|
||||
/** @deprecated */
|
||||
isActive: Boolean
|
||||
});
|
||||
|
||||
|
||||
@@ -12,9 +12,11 @@ type RunCodeType = ModuleDispatchProps<{
|
||||
}>;
|
||||
type RunCodeResponse = DispatchNodeResultType<
|
||||
{
|
||||
[NodeOutputKeyEnum.error]?: any; // @deprecated
|
||||
[NodeOutputKeyEnum.rawResponse]?: Record<string, any>;
|
||||
[key: string]: any;
|
||||
|
||||
/** @deprecated */
|
||||
[NodeOutputKeyEnum.error]?: any;
|
||||
},
|
||||
{
|
||||
[NodeOutputKeyEnum.error]: string;
|
||||
|
||||
Reference in New Issue
Block a user