mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 20:34:28 +00:00
feat(agent): store preset avatars as real files in s3 storage (#381)
* feat(agent): store preset avatars as real files in s3 storage * fix(agent): use inline base64 previews in dialog and remove static avatar files * feat(agent): add 4 avatar presets and track avatarPreset in agent config * refactor(agent): consolidate preset avatar base64 data in dtos
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,6 +1,8 @@
|
||||
import { z } from 'zod'
|
||||
import { AgentType } from '@shumai/db/enums'
|
||||
|
||||
export * from './agent-avatar'
|
||||
|
||||
export { AgentType }
|
||||
export const agentTypeSchema = z.nativeEnum(AgentType)
|
||||
|
||||
@@ -29,6 +31,7 @@ export const agentInfoSchema = z.object({
|
||||
enabled: z.boolean(),
|
||||
permission: agentPermissionSchema.optional().default('reviewer'),
|
||||
avatar: z.string().optional(),
|
||||
avatarPreset: z.string().optional(),
|
||||
providerId: z.string().optional(),
|
||||
modelId: z.string().optional(),
|
||||
thinkingLevel: thinkingLevelSchema.optional().default('off'),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from './agent'
|
||||
export * from './agent-avatar'
|
||||
export * from './ai'
|
||||
export * from './asset'
|
||||
export * from './auth'
|
||||
|
||||
Reference in New Issue
Block a user