Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: reset #1901

Closed
wants to merge 112 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
51ff21b
feat(core): Add UI component for AWEL flow
fangyinc Jul 30, 2024
8465726
feat: Add flow2.0 examples
fangyinc Aug 5, 2024
db44f2b
feat(core): Support refresh for AWEL flow
fangyinc Aug 6, 2024
e97b63a
feat: 编排画布新增基于AWEL2.0的Select类型节点渲染
Aug 8, 2024
bde6792
style: translate comment to English
Aug 8, 2024
b96bfb1
feat: add Select type node rendering based on AWEL2.0 protocol to wor…
Dreammy23 Aug 8, 2024
2387aaf
feat(core): Add UI component for AWEL flow
fangyinc Jul 30, 2024
79fbee7
feat: Add flow2.0 examples
fangyinc Aug 5, 2024
462dee3
feat(core): Support refresh for AWEL flow
fangyinc Aug 6, 2024
3b4b34c
feat(core): Support variables for AWEL
fangyinc Aug 9, 2024
a348e6c
feat(core): Support complex variables parsing
fangyinc Aug 11, 2024
a00a9d5
feat(core): Fetch flow nodes API supports filterd by tags
fangyinc Aug 11, 2024
a70ca45
Merge branch 'awel-flow2.0' into feat/update-backend-code
Aug 12, 2024
ff87228
feat: update code of awel-flow2.0 branch (#1810)
Dreammy23 Aug 12, 2024
5193c3e
feat: add some atomic components to flow
Aug 12, 2024
6593af2
feat: add slider textarea treeSelect(80%) timePicker
Aug 12, 2024
18ea5ad
feat: Error resolution
Aug 13, 2024
be7efed
feat: add atom component to flow(textArea、treeSelect、timePiceker、slid…
Dreammy23 Aug 13, 2024
baa1691
style: optimize code of flow
Aug 13, 2024
3225a97
style: optimize code of flow (#1817)
Dreammy23 Aug 13, 2024
0d76c0e
Merge branch 'feat/sprint-web-flow' into feat/atom-component
Aug 13, 2024
9808af3
feat: optimize code
Aug 13, 2024
0b102c2
feat: add atom components to flow(select、input、checkbox、dataPicker) (…
Dreammy23 Aug 13, 2024
dfb13f4
style: update readme
Aug 13, 2024
6290666
fix: Fixed the issue where the date selection component was not effec…
Aug 13, 2024
7c5a67b
fix: fixed the issue where the datePicker component was not effective…
Dreammy23 Aug 13, 2024
f8c786e
feat: update style of canvas node
Aug 14, 2024
a07676e
feat: update style of canvas node (#1829)
Dreammy23 Aug 14, 2024
b8538c7
fix: fixed the issue of incorrect background color of canvas node in …
Aug 14, 2024
9796bf9
style: delete redundant font styles
Aug 14, 2024
145b255
fix: fixed the issue of incorrect background color of canvas node in …
Dreammy23 Aug 14, 2024
6f31c01
feat: add components (codeEditor80% updata)
yunfeng1993 Aug 14, 2024
6284f6a
feat(core): Add AWEL flow radio component
fangyinc Aug 15, 2024
2696d9a
feat: add Password component to flow
Aug 15, 2024
27ee22d
feat:Remove test code
Aug 15, 2024
c9a4668
feat: add Password component to flow (#1831)
Dreammy23 Aug 15, 2024
6a732ae
Merge branch 'awel-flow2.0' into chore/update-api
Aug 15, 2024
da29d4a
chore: update backend api (#1832)
Dreammy23 Aug 15, 2024
b264325
feat:code editor
Aug 15, 2024
b301860
fix:Attribute error
Aug 15, 2024
fa5e425
fix:Description error
Aug 15, 2024
c5ba264
feat:1、Set language 2、Remove junk code
yunfeng1993 Aug 15, 2024
dd21314
Merge branch 'feat/sprint-web-flow' into feat-sprint-web-flow-2.0
yunfeng1993 Aug 16, 2024
187cdd6
feat: add atom components to flow (upload、codeEditor) (#1834)
yunfeng1993 Aug 16, 2024
77be0e6
fix: 1、components treeSelect and Password switch locations
Aug 16, 2024
1bc6d26
fix: 1、components treeSelect and Password switch locations 2、remove c…
Dreammy23 Aug 16, 2024
6ad7199
fix: Components slider and treeSelect drag
Aug 16, 2024
ec42162
fix: Components slider and treeSelect drag (#1837)
Dreammy23 Aug 16, 2024
8563e30
feat(core): Add UI component for AWEL flow
fangyinc Jul 30, 2024
e3e08a8
feat: Add flow2.0 examples
fangyinc Aug 5, 2024
f6669d3
feat(core): Support refresh for AWEL flow
fangyinc Aug 6, 2024
125765a
feat(core): Support variables for AWEL
fangyinc Aug 9, 2024
94ef5da
feat(core): Support complex variables parsing
fangyinc Aug 11, 2024
abf1c78
feat(core): Fetch flow nodes API supports filterd by tags
fangyinc Aug 11, 2024
74f3433
feat(core): Add AWEL flow radio component
fangyinc Aug 15, 2024
58fb29b
feat(core): Add debug and export/import for AWEL flow
fangyinc Aug 17, 2024
b6d54ed
feat(core): Add file server for DB-GPT
fangyinc Aug 18, 2024
48312ed
feat(core): Add file upload operator
fangyinc Aug 18, 2024
7c241b6
fix(core): Fix upload ui component attr error
fangyinc Aug 18, 2024
3d1d275
feat(core): Add multi-instance config
fangyinc Aug 19, 2024
8ced940
feat: add Variables component to flow
Aug 19, 2024
8571ebd
Merge branch 'feat/sprint-web-flow' into feat/tags
Aug 19, 2024
59a3f37
feat: add Variables component to flow (#1839)
Dreammy23 Aug 19, 2024
5c7b938
Merge branch 'awel-flow2.0' of https://github.com/eosphoros-ai/DB-GPT…
Aug 19, 2024
fbd44b8
Merge branch 'awel-flow2.0' into chore/update-api
Aug 19, 2024
d47ecec
chore: update api (#1840)
Dreammy23 Aug 19, 2024
a731233
style: delete repeated Select component
Aug 19, 2024
d0249cb
style: delete repeated Select component (#1841)
Dreammy23 Aug 19, 2024
9394d34
feat(core): Add code editor for UI component
fangyinc Aug 19, 2024
aebb71f
Feat/sprint web flow (#1845)
yunfeng1993 Aug 19, 2024
978ffe1
feat: 1、component textArea support mouse scrolling
Aug 19, 2024
09b9523
fix: add label of component
Aug 20, 2024
861ed9e
feat: refactor NodeParamHandler component
Aug 20, 2024
bf169fa
feat: TextArea component support mouse scrolling、Slider component s…
Dreammy23 Aug 20, 2024
ca1d710
fix: add label of component (#1847)
Dreammy23 Aug 20, 2024
3270112
Merge branch 'awel-flow2.0' of https://github.com/eosphoros-ai/DB-GPT…
Aug 20, 2024
77fbe47
Merge branch 'awel-flow2.0' into chore/update-api
Aug 20, 2024
1a73f5f
chore: update api (#1848)
Dreammy23 Aug 20, 2024
5cf6070
feat: Update UI components for better user experience
Aug 20, 2024
c8fa08f
feat: update UI components for better user experience (#1850)
Dreammy23 Aug 20, 2024
37240c9
chore: update api
Aug 20, 2024
e89f4e3
chore: update api (#1851)
Dreammy23 Aug 20, 2024
74cbfb6
feat: add export/import functionality to flow canvas
Aug 20, 2024
3bb00ed
feat: refactor NodeParamHandler component
Aug 20, 2024
47b1f6a
feat: add export/import functionality to flow canvas (#1853)
Dreammy23 Aug 20, 2024
093ab9a
refactor: refactor canvasNode component to improve rendering performance
Aug 20, 2024
dd4a90d
style: remove console.log statements in NodeParamHandler component
Aug 20, 2024
ef43061
Feat: Merge branch sprint web flow (#1854)
yunfeng1993 Aug 20, 2024
4736b80
feat: Component Upload complete
Aug 20, 2024
1781d0d
feat:remove console
Aug 20, 2024
1c53621
refactor: remove unused API functions and update flow utils
Aug 20, 2024
438adac
refactor: Update canvasNode component to support parameter refreshing
Aug 20, 2024
3859ef1
feat: flow Component Upload support multiple selection
Aug 20, 2024
1cd9bb3
feat: update canvasNode component to support parameter refreshing (#1…
Dreammy23 Aug 20, 2024
132afec
feat: upload file type
Aug 20, 2024
06d7bd4
chore: Fix merge code error
fangyinc Aug 20, 2024
79aff88
feat: update upload components (#1857)
Dreammy23 Aug 20, 2024
0723cda
feat: add prefix icon support to RenderInput component
Aug 20, 2024
0585158
feat: add prefix icon support to RenderInput component (#1858)
Dreammy23 Aug 20, 2024
b4d9f90
feat: fix import typo in node-renderer/index.ts
Aug 21, 2024
ad44355
refactor: simplify code by removing unused API functions and updating…
Aug 21, 2024
3997754
feat: remove defaultValue prop from renderUpload component
Aug 21, 2024
fc4c5ee
refactor: fix import typo in node-renderer/index.ts (#1861)
Dreammy23 Aug 21, 2024
d9fe810
feat: Update console log messages in CanvasNode component
Aug 22, 2024
c7173fb
feat: Update getFlows API function to support pagination
Aug 22, 2024
4848647
feat: update getFlows API function to support pagination (#1868)
Dreammy23 Aug 22, 2024
c052a69
feat: Add support for importing and exporting flows
Aug 22, 2024
bef46d8
feat: add support for importing and exporting flows (#1869)
Dreammy23 Aug 22, 2024
e3faa25
Merge branch 'main' into chore/merge-master
Aug 27, 2024
807b13e
chore: merge main (#1894)
Dreammy23 Aug 27, 2024
a5620d9
chore: merge frontend code of dev-0.6
Aug 27, 2024
b3dc93d
chore: merge frontend code of branch dev-0.6 (#1895)
Dreammy23 Aug 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions dbgpt/_private/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,17 @@ def __init__(self) -> None:
os.getenv("MULTI_INSTANCE", "False").lower() == "true"
)

# file server configuration
# The host of the current file server, if None, get the host automatically
self.FILE_SERVER_HOST = os.getenv("FILE_SERVER_HOST")
self.FILE_SERVER_LOCAL_STORAGE_PATH = os.getenv(
"FILE_SERVER_LOCAL_STORAGE_PATH"
)
# multi-instance flag
self.WEBSERVER_MULTI_INSTANCE = (
os.getenv("MULTI_INSTANCE", "False").lower() == "true"
)

@property
def local_db_manager(self) -> "ConnectorManager":
from dbgpt.datasource.manages import ConnectorManager
Expand Down
1 change: 0 additions & 1 deletion dbgpt/core/awel/flow/flow_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ class _VariablesRequestBase(BaseModel):
description="The key of the variable to create",
examples=["dbgpt.model.openai.api_key"],
)

label: str = Field(
...,
description="The label of the variable to create",
Expand Down
2 changes: 1 addition & 1 deletion web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ yarn install

### Usage
```sh
cp .env.example .env
cp .env.template .env
```
edit the `API_BASE_URL` to the real address

Expand Down
33 changes: 21 additions & 12 deletions web/client/api/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { AppListResponse, CreateAppParams, IAgent, IApp, NativeAppScenesResponse, StrategyResponse, TeamMode } from '@/types/app';
import { IFlowResponse } from '@/types/flow';
import {
AppListResponse,
CreateAppParams,
IAgent,
IApp,
NativeAppScenesResponse,
StrategyResponse,
TeamMode,
} from '@/types/app';

import { GET, POST } from '../index';

Expand Down Expand Up @@ -45,7 +52,9 @@ export const getAppStrategy = () => {
* 获取资源参数
*/
export const getResource = (data: Record<string, string>) => {
return GET<Record<string, string>, Record<string, any>[]>(`/api/v1/app/resources/list?type=${data.type}`);
return GET<Record<string, string>, Record<string, any>[]>(
`/api/v1/app/resources/list?type=${data.type}`
);
};
/**
* 创建native_app应用
Expand All @@ -61,13 +70,7 @@ export const getNativeAppScenes = () => {
export const getAppStrategyValues = (type: string) => {
return GET<string, string[]>(`/api/v1/llm-strategy/value/list?type=${type}`);
};
/**
* 创建awel_layout应用
* 获取工作流
*/
export const getFlows = ({ page, page_size }: { page: number; page_size: number }) => {
return GET<{ page: number; page_size: number }, IFlowResponse>(`/api/v1/serve/awel/flows?page=${page}&page_size=${page_size}`);
};

/**
* 查询应用权限
*/
Expand All @@ -77,6 +80,12 @@ export const getAppAdmins = (appCode: string) => {
/**
* 更新应用权限
*/
export const updateAppAdmins = (data: { app_code: string; admins: string[] }) => {
return POST<{ app_code: string; admins: string[] }, null>(`/api/v1/app/admins/update`, data);
export const updateAppAdmins = (data: {
app_code: string;
admins: string[];
}) => {
return POST<{ app_code: string; admins: string[] }, null>(
`/api/v1/app/admins/update`,
data
);
};
89 changes: 81 additions & 8 deletions web/client/api/flow/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,82 @@
import { IFlow, UpdateFLowAdminsParams } from '@/types/flow';
import { POST } from '../index';

/**
* 更新管理员
*/
export const updateFlowAdmins = (data: UpdateFLowAdminsParams) => {
return POST<UpdateFLowAdminsParams, IFlow>(`/api/v1/serve/awel/flow/admins`, data);
import {
IFlow,
IFlowNode,
IFlowResponse,
IFlowUpdateParam,
IFlowRefreshParams,
IFlowExportParams,
IFlowImportParams,
IUploadFileRequestParams,
IUploadFileResponse,
} from '@/types/flow';
import { DELETE, GET, POST, PUT } from '../index';

/** AWEL Flow */
export const addFlow = (data: IFlowUpdateParam) => {
return POST<IFlowUpdateParam, IFlow>('/api/v2/serve/awel/flows', data);
};

export const getFlows = (page?: number, page_size?: number) => {
return GET<any, IFlowResponse>('/api/v2/serve/awel/flows', {
page,
page_size,
});
};

export const getFlowById = (id: string) => {
return GET<null, IFlow>(`/api/v2/serve/awel/flows/${id}`);
};

export const updateFlowById = (id: string, data: IFlowUpdateParam) => {
return PUT<IFlowUpdateParam, IFlow>(`/api/v2/serve/awel/flows/${id}`, data);
};

export const deleteFlowById = (id: string) => {
return DELETE<null, null>(`/api/v2/serve/awel/flows/${id}`);
};

export const getFlowNodes = () => {
return GET<null, Array<IFlowNode>>(`/api/v2/serve/awel/nodes`);
};

export const refreshFlowNodeById = (data: IFlowRefreshParams) => {
return POST<IFlowRefreshParams, IFlowNode>(
'/api/v2/serve/awel/nodes/refresh',
data
);
};

export const debugFlow = (data: any) => {
return POST<any, IFlowNode>('/api/v2/serve/awel/flow/debug', data);
};

export const exportFlow = (data: IFlowExportParams) => {
return GET<IFlowExportParams, any>(
`/api/v2/serve/awel/flow/export/${data.uid}`,
data
);
};

export const importFlow = (data: IFlowImportParams) => {
return POST<IFlowImportParams, any>('/api/v2/serve/awel/flow/import', data);
};

export const uploadFile = (data: IUploadFileRequestParams) => {
return POST<IUploadFileRequestParams, Array<IUploadFileResponse>>(
'/api/v2/serve/file/files/dbgpt',
data
);
};

export const downloadFile = (fileId: string) => {
return GET<null, any>(`/api/v2/serve/file/files/dbgpt/${fileId}`);
};

// TODO:wait for interface update
export const getFlowTemplateList = () => {
return GET<null, Array<any>>('/api/v2/serve/awel/flow/templates');
};

export const getFlowTemplateById = (id: string) => {
return GET<null, any>(`/api/v2/serve/awel/flow/templates/${id}`);
};
Loading
Loading