mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 22:49:28 +00:00
fix(settings): prioritize actual agent type when editing agent configurations
This commit is contained in:
@@ -116,7 +116,7 @@ export function AgentFormDialog({
|
||||
const form = useForm({
|
||||
defaultValues: {
|
||||
name: initialValues?.name || '',
|
||||
type: type || initialValues?.type || 'chat',
|
||||
type: initialValues?.type || type || 'chat',
|
||||
avatar: initialValues?.avatar || AVAILABLE_AVATARS[0],
|
||||
providerId: initialValues?.providerId || '',
|
||||
modelId: initialValues?.modelId || '',
|
||||
|
||||
Reference in New Issue
Block a user