| 1 | import { createZodDto } from '@yikart/common' |
| 2 | import { z } from 'zod' |
| 3 | |
| 4 | export const grokConfigSchema = z.object({ |
| 5 | apiKey: z.string().describe('Grok API Key'), |
| 6 | baseUrl: z.string().default('https://api.x.ai').describe('Grok API Base URL'), |
| 7 | proxyUrl: z.string().optional().describe('反向代理地址'), |
| 8 | }) |
| 9 | |
| 10 | export class GrokConfig extends createZodDto(grokConfigSchema) {} |
| 11 |