feat: add api-based extension & external data tool & moderation (#1459)
This commit is contained in:
@@ -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[]
|
||||
|
Reference in New Issue
Block a user