feat: unstructured frontend (#1777)

This commit is contained in:
Joel
2023-12-18 23:28:25 +08:00
committed by GitHub
parent 5e34f938c1
commit 9b34f5a9ff
4 changed files with 25 additions and 20 deletions

View File

@@ -214,3 +214,11 @@ export const createApikey: Fetcher<CreateApiKeyResponse, { url: string; body: Re
export const fetchDatasetApiBaseUrl: Fetcher<{ api_base_url: string }, string> = (url) => {
return get<{ api_base_url: string }>(url)
}
type FileTypesRes = {
allowed_extensions: string[]
}
export const fetchSupportFileTypes: Fetcher<FileTypesRes, { url: string }> = ({ url }) => {
return get<FileTypesRes>(url)
}