feat: add api-based extension & external data tool & moderation (#1459)

This commit is contained in:
zxhlyh
2023-11-06 19:36:32 +08:00
committed by GitHub
parent db43ed6f41
commit 32747641e4
84 changed files with 3327 additions and 167 deletions

View File

@@ -1,4 +1,5 @@
import type { ChatPromptConfig, CompletionPromptConfig, DatasetConfigs, PromptMode } from '@/models/debug.ts'
import type { ExternalDataTool } from '@/models/common'
export enum ProviderType {
openai = 'openai',
anthropic = 'anthropic',
@@ -113,6 +114,10 @@ export type ModelConfig = {
retriever_resource: {
enabled: boolean
}
sensitive_word_avoidance: {
enabled: boolean
}
external_data_tools: ExternalDataTool[]
agent_mode: {
enabled: boolean
tools: ToolItem[]