wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
models/common.ts
@@ -1,5 +1,4 @@
import type { I18nText } from '@/i18n/language'
import type { Model } from '@/types/app'
export type CommonResponse = {
  result: 'success' | 'fail'
@@ -130,6 +129,7 @@
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
@@ -179,15 +179,9 @@
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
}
@@ -292,13 +286,3 @@
    text: string
  }
) => Promise<ModerateResponse>
export type StructuredOutputRulesRequestBody = {
  instruction: string
  model_config: Model
}
export type StructuredOutputRulesResponse = {
  output: string
  error?: string
}