mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 20:39:44 +00:00
Fix llm strategy store and update app/static. (#1181)
Co-authored-by: lcxadml <864255598@qq.com>
This commit is contained in:
@@ -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>) => {
|
||||
|
@@ -55,7 +55,7 @@ export default function App() {
|
||||
}
|
||||
if (!data) return;
|
||||
|
||||
setApps(data || []);
|
||||
setApps(data.app_list || []);
|
||||
setSpinning(false);
|
||||
};
|
||||
|
||||
|
@@ -31,6 +31,13 @@ export type IApp = {
|
||||
is_collected: string;
|
||||
};
|
||||
|
||||
export type IAppData = {
|
||||
app_list: IApp[];
|
||||
current_page: number;
|
||||
total_count: number;
|
||||
total_page: number;
|
||||
};
|
||||
|
||||
// agent
|
||||
export type AgentParams = {
|
||||
agent_name: string;
|
||||
|
Reference in New Issue
Block a user