mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 fix: slove group member plugin is lost & not use the plugins (#11802)
fix: slove group member plugin is lost & not use the plugins
This commit is contained in:
@@ -104,9 +104,11 @@ const ForkGroupAndChat = memo<{ mobile?: boolean }>(() => {
|
||||
const rawConfig = {
|
||||
avatar: currentVersion.avatar,
|
||||
backgroundColor: currentVersion.backgroundColor,
|
||||
chatConfig: currentVersion.config?.chatConfig || currentVersion.chatConfig,
|
||||
description: currentVersion.description,
|
||||
model: currentVersion.config?.model || currentVersion.model,
|
||||
params: currentVersion.config?.params || currentVersion.params,
|
||||
plugins: currentVersion.config?.plugins || currentVersion.plugins,
|
||||
provider: currentVersion.config?.provider || currentVersion.provider,
|
||||
systemRole:
|
||||
currentVersion.config?.systemRole ||
|
||||
@@ -149,9 +151,10 @@ const ForkGroupAndChat = memo<{ mobile?: boolean }>(() => {
|
||||
return {
|
||||
avatar: currentVersion.avatar,
|
||||
backgroundColor: currentVersion.backgroundColor,
|
||||
chatConfig: currentVersion.config?.chatConfig || currentVersion.chatConfig,
|
||||
description: currentVersion.description,
|
||||
model: currentVersion.config?.model || currentVersion.model,
|
||||
plugins: currentVersion.plugins,
|
||||
plugins: currentVersion.config?.plugins || currentVersion.plugins,
|
||||
provider: currentVersion.config?.provider || currentVersion.provider,
|
||||
systemRole:
|
||||
currentVersion.config?.systemRole ||
|
||||
|
||||
@@ -113,6 +113,12 @@ export const useMarketGroupPublish = ({ action, onSuccess }: UseMarketGroupPubli
|
||||
model: agent.model,
|
||||
params: agent.params,
|
||||
systemRole: agent.systemRole,
|
||||
// Include plugins if they exist
|
||||
...(agent.plugins && agent.plugins.length > 0 ? { plugins: agent.plugins } : {}),
|
||||
// Include provider if it exists
|
||||
...(agent.provider ? { provider: agent.provider } : {}),
|
||||
// Include chatConfig if it exists
|
||||
...(agent.chatConfig ? { chatConfig: agent.chatConfig } : {}),
|
||||
},
|
||||
// Market requires at least 1 character for description
|
||||
description: agent.description || 'No description provided',
|
||||
|
||||
Reference in New Issue
Block a user