Z.AI: Add transcribe endpoint
| @@ -725,6 +725,12 @@ router.post('/mistral/transcribe-audio', createTranscribeHandler({ | ||
| 725 | 725 | providerName: 'MistralAI', |
| 726 | 726 | })); |
| 727 | 727 | |
| 728 | +router.post('/zai/transcribe-audio', createTranscribeHandler({ | |
| 729 | + secretKey: SECRET_KEYS.ZAI, | |
| 730 | + apiUrl: 'https://api.z.ai/api/paas/v4/audio/transcriptions', | |
| 731 | + providerName: 'Z.AI', | |
| 732 | +})); | |
| 733 | + | |
| 728 | 734 | router.post('/chutes/transcribe-audio', async (request, response) => { |
| 729 | 735 | try { |
| 730 | 736 | const key = readSecret(request.user.directories, SECRET_KEYS.CHUTES); |