mirror of https://github.com/langgenius/dify.git
Merge branch 'feat/plugins' of https://github.com/langgenius/dify into feat/plugins
This commit is contained in:
commit
701520ffd0
|
|
@ -21,7 +21,7 @@ export const tagKeys = [
|
|||
export const categoryKeys = [
|
||||
'model',
|
||||
'tool',
|
||||
'agent',
|
||||
'agent-strategy',
|
||||
'extension',
|
||||
'bundle',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -42,10 +42,10 @@ export const useCategories = (translateFromOut?: TFunction) => {
|
|||
const t = translateFromOut || translation
|
||||
|
||||
const categories = categoryKeys.map((category) => {
|
||||
if (category === 'agent') {
|
||||
if (category === 'agent-strategy') {
|
||||
return {
|
||||
name: 'agent_strategy',
|
||||
label: t(`plugin.category.${category}s`),
|
||||
name: 'agent-strategy',
|
||||
label: t('plugin.category.agents'),
|
||||
}
|
||||
}
|
||||
return {
|
||||
|
|
@ -70,10 +70,10 @@ export const useSingleCategories = (translateFromOut?: TFunction) => {
|
|||
const t = translateFromOut || translation
|
||||
|
||||
const categories = categoryKeys.map((category) => {
|
||||
if (category === 'agent') {
|
||||
if (category === 'agent-strategy') {
|
||||
return {
|
||||
name: 'agent_strategy',
|
||||
label: t(`plugin.categorySingle.${category}`),
|
||||
name: 'agent-strategy',
|
||||
label: t('plugin.categorySingle.agent'),
|
||||
}
|
||||
}
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export enum PluginType {
|
|||
tool = 'tool',
|
||||
model = 'model',
|
||||
extension = 'extension',
|
||||
agent = 'agent_strategy',
|
||||
agent = 'agent-strategy',
|
||||
}
|
||||
|
||||
export enum PluginSource {
|
||||
|
|
|
|||
Loading…
Reference in New Issue