Fix llm strategy store and update app/static. (#1181)

Co-authored-by: lcxadml <864255598@qq.com>
This commit is contained in:
Shinexy
2024-02-22 14:33:57 +08:00
committed by GitHub
parent ab5e1c7ea1
commit 21682575f5
26 changed files with 66 additions and 33 deletions

View File

@@ -33,7 +33,7 @@ import {
} from '@/types/knowledge';
import { UpdatePromptParams, IPrompt, PromptParams } from '@/types/prompt';
import { IFlow, IFlowNode, IFlowResponse, IFlowUpdateParam } from '@/types/flow';
import { IAgent, IApp, ITeamModal } from '@/types/app';
import { IAgent, IApp, IAppData, ITeamModal } from '@/types/app';
/** App */
export const postScenes = () => {
@@ -283,7 +283,7 @@ export const addApp = (data: IApp) => {
};
export const getAppList = (data: Record<string, string>) => {
return POST<Record<string, string>, IApp[]>('/api/v1/app/list', data);
return POST<Record<string, string>, IAppData>('/api/v1/app/list', data);
};
export const collectApp = (data: Record<string, string>) => {