mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-14 20:41:21 +08:00
fex: 1、app_extend 找不到修复
2、.env默认地址配置,外网需要自行配置 3、1.11.4同步部分提交 # Conflicts: # api/core/app/apps/advanced_chat/app_generator.py # api/core/app/apps/base_app_runner.py # api/core/app/apps/workflow/app_generator.py # api/services/feature_service.py # web/pnpm-lock.yaml
This commit is contained in:
@@ -107,6 +107,18 @@ export const useSyncDocument = () => {
|
||||
})
|
||||
}
|
||||
|
||||
export const useDocumentSummary = () => {
|
||||
return useMutation({
|
||||
mutationFn: ({ datasetId, documentIds, documentId }: UpdateDocumentBatchParams) => {
|
||||
return post<CommonResponse>(`/datasets/${datasetId}/documents/generate-summary`, {
|
||||
body: {
|
||||
document_list: documentId ? [documentId] : documentIds!,
|
||||
},
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export const useSyncWebsite = () => {
|
||||
return useMutation({
|
||||
mutationFn: ({ datasetId, documentId }: UpdateDocumentBatchParams) => {
|
||||
|
||||
+11
-3
@@ -1,5 +1,6 @@
|
||||
import type {
|
||||
Collection,
|
||||
Credential,
|
||||
CustomCollectionBackend,
|
||||
CustomParamSchema,
|
||||
Tool,
|
||||
@@ -41,9 +42,9 @@ export const fetchBuiltInToolCredentialSchema = (collectionName: string) => {
|
||||
}
|
||||
|
||||
export const fetchBuiltInToolCredential = (collectionName: string) => {
|
||||
return get<ToolCredential[]>(`/workspaces/current/tool-provider/builtin/${collectionName}/credentials`)
|
||||
return get<Record<string, unknown>>(`/workspaces/current/tool-provider/builtin/${collectionName}/credentials`)
|
||||
}
|
||||
export const updateBuiltInToolCredential = (collectionName: string, credential: Record<string, any>) => {
|
||||
export const updateBuiltInToolCredential = (collectionName: string, credential: Record<string, unknown>) => {
|
||||
return post(`/workspaces/current/tool-provider/builtin/${collectionName}/update`, {
|
||||
body: {
|
||||
credentials: credential,
|
||||
@@ -102,7 +103,14 @@ export const importSchemaFromURL = (url: string) => {
|
||||
})
|
||||
}
|
||||
|
||||
export const testAPIAvailable = (payload: any) => {
|
||||
export const testAPIAvailable = (payload: {
|
||||
provider_name: string
|
||||
tool_name: string
|
||||
credentials: Credential
|
||||
schema_type: string
|
||||
schema: string
|
||||
parameters: Record<string, string>
|
||||
}) => {
|
||||
return post('/workspaces/current/tool-provider/api/test/pre', {
|
||||
body: {
|
||||
...payload,
|
||||
|
||||
Reference in New Issue
Block a user