| 1 | import { createAnthropic } from '@ai-sdk/anthropic'; |
| 2 | |
| 3 | export const PM_BRAIN_MODEL = process.env.PM_BRAIN_MODEL || 'glm-4.6'; |
| 4 | |
| 5 | export const zai = createAnthropic({ |
| 6 | baseURL: process.env.ZAI_BASE_URL || 'https://api.z.ai/api/anthropic/v1', |
| 7 | apiKey: process.env.ZAI_API_KEY || '', |
| 8 | headers: { 'anthropic-version': '2023-06-01' }, |
| 9 | }); |
| 10 | |
| 11 | export const glmModel = zai(PM_BRAIN_MODEL); |