Perf input guide (#1557)

* perf: input guide code

* perf: input guide ui

* Chat input guide api

* Update app chat config store

* perf: app chat config field

* perf: app context

* perf: params

* fix: ts

* perf: filter private config

* perf: filter private config

* perf: import workflow

* perf: limit max tip amount
This commit is contained in:
Archer
2024-05-21 17:52:04 +08:00
committed by GitHub
parent 8e8ceb7439
commit fb368a581c
123 changed files with 2124 additions and 1805 deletions

View File

@@ -16,6 +16,7 @@ export type AppUpdateParams = {
intro?: string;
nodes?: AppSchema['modules'];
edges?: AppSchema['edges'];
chatConfig?: AppSchema['chatConfig'];
permission?: AppSchema['permission'];
teamTags?: AppSchema['teamTags'];
};
@@ -24,6 +25,7 @@ export type PostPublishAppProps = {
type: `${AppTypeEnum}`;
nodes: AppSchema['modules'];
edges: AppSchema['edges'];
chatConfig: AppSchema['chatConfig'];
};
export type PostRevertAppProps = {

View File

@@ -1,4 +1,4 @@
import type { AppTTSConfigType } from '@fastgpt/global/core/app/type.d';
import type { AppChatConfigType, AppTTSConfigType } from '@fastgpt/global/core/app/type.d';
import { StoreNodeItemType } from '@fastgpt/global/core/workflow/type/index.d';
import { AdminFbkType, ChatItemType } from '@fastgpt/global/core/chat/type';
import type { OutLinkChatAuthProps } from '@fastgpt/global/support/permission/chat.d';
@@ -34,7 +34,7 @@ export type InitChatResponse = {
variables: Record<string, any>;
history: ChatItemType[];
app: {
userGuideModule?: StoreNodeItemType;
chatConfig?: AppChatConfigType;
chatModels?: string[];
name: string;
avatar: string;