V4.8.17 feature (#3485)
* feat: add third party account config (#3443) * temp * editor workflow variable style * add team to dispatch * i18n * delete console * change openai account position * fix * fix * fix * fix * fix * 4.8.17 test (#3461) * perf: external provider config * perf: ui * feat: add template config (#3434) * change template position * template config * delete console * delete * fix * fix * perf: Mongo visutal field (#3464) * remve invalid code * perf: team member visutal code * perf: virtual search; perf: search test data * fix: ts * fix: image response headers * perf: template code * perf: auth layout;perf: auto save (#3472) * perf: auth layout * perf: auto save * perf: auto save * fix: template guide display & http input support external variables (#3475) * fix: template guide display * http editor support external workflow variables * perf: auto save;fix: ifelse checker line break; (#3478) * perf: auto save * perf: auto save * fix: ifelse checker line break * perf: doc * perf: doc * fix: update var type error * 4.8.17 test (#3479) * perf: auto save * perf: auto save * perf: template code * 4.8.17 test (#3480) * perf: auto save * perf: auto save * perf: model price model * feat: add react memo * perf: model provider filter * fix: ts (#3481) * perf: auto save * perf: auto save * fix: ts * simple app tool select (#3473) * workflow plugin userguide & simple tool ui * simple tool filter * reuse component * change component to hook * fix * perf: too selector modal (#3484) * perf: auto save * perf: auto save * perf: markdown render * perf: too selector * fix: app version require tmbId * perf: templates refresh * perf: templates refresh * hide auto save error tip * perf: toolkit guide --------- Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
@@ -39,7 +39,7 @@ function checkMaxQuantity({ url, maxQuantity }: { url: string; maxQuantity?: num
|
||||
|
||||
if (item) {
|
||||
if (item.amount >= maxQuantity) {
|
||||
item.sign?.abort?.();
|
||||
!item.sign?.signal?.aborted && item.sign?.abort?.();
|
||||
maxQuantityMap[url] = {
|
||||
amount: 1,
|
||||
sign: controller
|
||||
|
||||
@@ -8,7 +8,7 @@ import { AppLogsListItemType } from '@/types/app';
|
||||
import { PagingData } from '@/types';
|
||||
|
||||
/**
|
||||
* 获取模型列表
|
||||
* 获取应用列表
|
||||
*/
|
||||
export const getMyApps = (data?: ListAppBody) =>
|
||||
POST<AppListItemType[]>('/core/app/list', data, {
|
||||
@@ -16,23 +16,23 @@ export const getMyApps = (data?: ListAppBody) =>
|
||||
});
|
||||
|
||||
/**
|
||||
* 创建一个模型
|
||||
* 创建一个应用
|
||||
*/
|
||||
export const postCreateApp = (data: CreateAppBody) => POST<string>('/core/app/create', data);
|
||||
|
||||
export const getMyAppsByTags = (data: {}) => POST(`/proApi/core/chat/team/getApps`, data);
|
||||
/**
|
||||
* 根据 ID 删除模型
|
||||
* 根据 ID 删除应用
|
||||
*/
|
||||
export const delAppById = (id: string) => DELETE(`/core/app/del?appId=${id}`);
|
||||
|
||||
/**
|
||||
* 根据 ID 获取模型
|
||||
* 根据 ID 获取应用
|
||||
*/
|
||||
export const getAppDetailById = (id: string) => GET<AppDetailType>(`/core/app/detail?appId=${id}`);
|
||||
|
||||
/**
|
||||
* 根据 ID 更新模型
|
||||
* 根据 ID 更新应用
|
||||
*/
|
||||
export const putAppById = (id: string, data: AppUpdateParams) =>
|
||||
PUT(`/core/app/update?appId=${id}`, data);
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
import { ListParams } from '@/pages/api/core/app/template/list';
|
||||
import { GET } from '@/web/common/api/request';
|
||||
import {
|
||||
TemplateMarketItemType,
|
||||
TemplateMarketListItemType
|
||||
} from '@fastgpt/global/core/workflow/type';
|
||||
import { useSystemStore } from '@/web/common/system/useSystemStore';
|
||||
import { AppTemplateSchemaType, TemplateTypeSchemaType } from '@fastgpt/global/core/app/type';
|
||||
import { defaultTemplateTypes } from '@fastgpt/web/core/workflow/constants';
|
||||
|
||||
export const getTemplateMarketItemList = () =>
|
||||
GET<TemplateMarketListItemType[]>('/core/app/template/list');
|
||||
export const getTemplateMarketItemList = (data: ListParams) =>
|
||||
GET<AppTemplateSchemaType[]>(`/core/app/template/list`, data);
|
||||
|
||||
export const getTemplateMarketItemDetail = (data: { templateId: string }) =>
|
||||
GET<TemplateMarketItemType>(`/core/app/template/detail`, data);
|
||||
export const getTemplateMarketItemDetail = (templateId: string) =>
|
||||
GET<AppTemplateSchemaType>(`/core/app/template/detail?templateId=${templateId}`);
|
||||
|
||||
export const getTemplateTagList = () => {
|
||||
return useSystemStore.getState()?.feConfigs?.isPlus
|
||||
? GET<TemplateTypeSchemaType[]>('/proApi/core/app/template/getTemplateTypes')
|
||||
: Promise.resolve(defaultTemplateTypes);
|
||||
};
|
||||
|
||||
@@ -56,3 +56,5 @@ export enum TTSTypeEnum {
|
||||
web = 'web',
|
||||
model = 'model'
|
||||
}
|
||||
|
||||
export const workflowStartNodeId = 'workflowStartNodeId';
|
||||
|
||||
@@ -39,6 +39,7 @@ import {
|
||||
Input_Template_File_Link_Prompt,
|
||||
Input_Template_UserChatInput
|
||||
} from '@fastgpt/global/core/workflow/template/input';
|
||||
import { workflowStartNodeId } from './constants';
|
||||
|
||||
type WorkflowType = {
|
||||
nodes: StoreNodeItemType[];
|
||||
@@ -50,7 +51,6 @@ export function form2AppWorkflow(
|
||||
): WorkflowType & {
|
||||
chatConfig: AppChatConfigType;
|
||||
} {
|
||||
const workflowStartNodeId = 'workflowStartNodeId';
|
||||
const datasetNodeId = 'iKBoX2vIzETU';
|
||||
const aiChatNodeId = '7BdojPlukIQw';
|
||||
|
||||
|
||||
@@ -32,7 +32,8 @@ export const defaultCollectionDetail: DatasetCollectionItemType = {
|
||||
_id: '',
|
||||
teamId: '',
|
||||
tmbId: '',
|
||||
datasetId: {
|
||||
datasetId: '',
|
||||
dataset: {
|
||||
_id: '',
|
||||
parentId: '',
|
||||
userId: '',
|
||||
|
||||
Reference in New Issue
Block a user