| | |
| | | import type { I18nText } from '@/i18n/language' |
| | | import type { Model } from '@/types/app' |
| | | |
| | | export type CommonResponse = { |
| | | result: 'success' | 'fail' |
| | |
| | | export type ICurrentWorkspace = Omit<IWorkspace, 'current'> & { |
| | | role: 'owner' | 'admin' | 'editor' | 'dataset_operator' | 'normal' |
| | | providers: Provider[] |
| | | in_trail: boolean |
| | | trial_end_reason?: string |
| | | custom_config?: { |
| | | remove_webapp_brand?: boolean |
| | |
| | | export enum DataSourceProvider { |
| | | fireCrawl = 'firecrawl', |
| | | jinaReader = 'jinareader', |
| | | waterCrawl = 'watercrawl', |
| | | } |
| | | |
| | | export type FirecrawlConfig = { |
| | | api_key: string |
| | | base_url: string |
| | | } |
| | | |
| | | export type WatercrawlConfig = { |
| | | api_key: string |
| | | base_url: string |
| | | } |
| | |
| | | text: string |
| | | } |
| | | ) => Promise<ModerateResponse> |
| | | |
| | | export type StructuredOutputRulesRequestBody = { |
| | | instruction: string |
| | | model_config: Model |
| | | } |
| | | |
| | | export type StructuredOutputRulesResponse = { |
| | | output: string |
| | | error?: string |
| | | } |