feat: add api-based extension & external data tool & moderation (#1459)
This commit is contained in:
@@ -98,6 +98,26 @@ const translation = {
|
||||
deleteContextVarTip: 'This variable has been set as a context query variable, and removing it will impact the normal use of the dataset. If you still need to delete it, please reselect it in the context section.',
|
||||
},
|
||||
},
|
||||
tools: {
|
||||
title: 'Tools',
|
||||
tips: 'Tools provide a standard API call method, taking user input or variables as request parameters for querying external data as context.',
|
||||
toolsInUse: '{{count}} tools in use',
|
||||
modal: {
|
||||
title: 'Tool',
|
||||
toolType: {
|
||||
title: 'Tool Type',
|
||||
placeholder: 'Please select the tool type',
|
||||
},
|
||||
name: {
|
||||
title: 'Name',
|
||||
placeholder: 'Please enter the name',
|
||||
},
|
||||
variableName: {
|
||||
title: 'Variable Name',
|
||||
placeholder: 'Please enter the variable name',
|
||||
},
|
||||
},
|
||||
},
|
||||
conversationHistory: {
|
||||
title: 'Conversation History',
|
||||
description: 'Set prefix names for conversation roles',
|
||||
@@ -109,6 +129,47 @@ const translation = {
|
||||
assistantPrefix: 'Assistant prefix',
|
||||
},
|
||||
},
|
||||
toolbox: {
|
||||
title: 'TOOLBOX',
|
||||
},
|
||||
moderation: {
|
||||
title: 'Content moderation',
|
||||
description: 'Content moderation',
|
||||
allEnabled: 'INPUT/OUTPUT Content Enabled',
|
||||
inputEnabled: 'INPUT Content Enabled',
|
||||
outputEnabled: 'OUTPUT Content Enabled',
|
||||
modal: {
|
||||
title: 'Content moderation settings',
|
||||
provider: {
|
||||
title: 'Provider',
|
||||
openai: 'OpenAI Moderation',
|
||||
openaiTip: {
|
||||
prefix: 'OpenAI Moderation requires an OpenAI API key configured in the ',
|
||||
suffix: '.',
|
||||
},
|
||||
keywords: 'Keywords',
|
||||
},
|
||||
keywords: {
|
||||
tip: 'One per line, separated by line breaks. Up to 100 characters per line.',
|
||||
placeholder: 'One per line, separated by line breaks',
|
||||
line: 'Line',
|
||||
},
|
||||
content: {
|
||||
input: 'Moderate INPUT Content',
|
||||
output: 'Moderate OUTPUT Content',
|
||||
preset: 'Preset replies',
|
||||
placeholder: 'Preset replies content here',
|
||||
condition: 'Moderate INPUT and OUTPUT Content enabled at least one',
|
||||
fromApi: 'Preset replies are returned by API',
|
||||
errorMessage: 'Preset replies cannot be empty',
|
||||
supportMarkdown: 'Markdown supported',
|
||||
},
|
||||
openaiNotConfig: {
|
||||
before: 'OpenAI Moderation requires an OpenAI API key configured in the',
|
||||
after: '',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
automatic: {
|
||||
title: 'Automated application orchestration',
|
||||
|
Reference in New Issue
Block a user