feat: add api-based extension & external data tool & moderation (#1459)
This commit is contained in:
parent
db43ed6f41
commit
32747641e4
84 changed files with 3327 additions and 167 deletions
|
|
@ -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[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue