feat: complete grounded digital avatar chat experience
This commit is contained in:
@@ -22,6 +22,10 @@ export function normalizeAvatarEditForm(avatar = {}) {
|
||||
humor: Number.isFinite(config.humor) ? config.humor : 30,
|
||||
responseLength: config.responseLength || 'medium',
|
||||
systemPrompt: config.systemPrompt || '',
|
||||
profession: config.profession || '',
|
||||
position: config.position || '',
|
||||
organization: config.organization || '',
|
||||
organizationAddress: config.organizationAddress || '',
|
||||
autoReply: config.autoReply !== false,
|
||||
}
|
||||
}
|
||||
@@ -40,6 +44,10 @@ export function buildAvatarUpdatePayload(form) {
|
||||
humor: Number(form.humor),
|
||||
responseLength: form.responseLength,
|
||||
systemPrompt: form.systemPrompt.trim(),
|
||||
profession: (form.profession || '').trim(),
|
||||
position: (form.position || '').trim(),
|
||||
organization: (form.organization || '').trim(),
|
||||
organizationAddress: (form.organizationAddress || '').trim(),
|
||||
autoReply: !!form.autoReply,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user