| 1 | import { createZodDto } from '@yikart/common' |
| 2 | import { z } from 'zod' |
| 3 | |
| 4 | export const openaiConfigSchema = z.object({ |
| 5 | apiKey: z.string().describe('OpenAI API Key'), |
| 6 | baseUrl: z.string().default('https://api.openai.com/v1').describe('OpenAI Base URL'), |
| 7 | timeout: z.number().default(300 * 1000), |
| 8 | }) |
| 9 | |
| 10 | export class OpenaiConfig extends createZodDto(openaiConfigSchema) {} |
| 11 |