mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 14:04:50 +00:00
refactor(dtos): use @shumai/db/enums across DTO definitions
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { z } from 'zod'
|
||||
import { AgentType } from '@shumai/db/enums'
|
||||
|
||||
export const agentTypeSchema = z.enum(['chat', 'autofill', 'embedding'])
|
||||
export type AgentType = z.infer<typeof agentTypeSchema>
|
||||
export { AgentType }
|
||||
export const agentTypeSchema = z.nativeEnum(AgentType)
|
||||
|
||||
export const thinkingLevelSchema = z.enum(['off', 'minimal', 'low', 'medium', 'high', 'xhigh'])
|
||||
export type ThinkingLevel = z.infer<typeof thinkingLevelSchema>
|
||||
|
||||
Reference in New Issue
Block a user