dify/web/service/try-app.ts

17 lines
306 B
TypeScript

import {
get,
} from './base'
import type {
SiteInfo,
} from '@/models/share'
type TryAppInfo = {
name: string
mode: 'chat' | 'text-generation' | 'workflow'
site: SiteInfo
}
export const fetchTryAppInfo = async (appId: string) => {
return get(`/trial-apps/${appId}`) as Promise<TryAppInfo>
}