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
commit 32747641e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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[]