| 1 | import { createZodDto } from '@yikart/common' |
| 2 | import { z } from 'zod' |
| 3 | |
| 4 | export const dashscopeConfigSchema = z.object({ |
| 5 | apiKey: z.string().describe('DashScope API Key'), |
| 6 | baseUrl: z.string().default('https://dashscope.aliyuncs.com').describe('DashScope API Base URL'), |
| 7 | }) |
| 8 | |
| 9 | export class DashscopeConfig extends createZodDto(dashscopeConfigSchema) {} |
| 10 |