Spaces:
Build error
Build error
Fix: Use BLABLADOR_API_KEY for Helmholtz endpoint
#1
by
harvesthealth
- opened
app/api/text-generation/route.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { createOpenAI } from '@ai-sdk/openai';
|
|
| 3 |
|
| 4 |
// Create an OpenAI API client (that's edge friendly!)
|
| 5 |
const customOpenAI = createOpenAI({
|
| 6 |
-
apiKey: process.env.
|
| 7 |
baseURL: 'https://api.helmholtz-blablador.fz-juelich.de/v1',
|
| 8 |
});
|
| 9 |
|
|
|
|
| 3 |
|
| 4 |
// Create an OpenAI API client (that's edge friendly!)
|
| 5 |
const customOpenAI = createOpenAI({
|
| 6 |
+
apiKey: process.env.BLABLADOR_API_KEY || '',
|
| 7 |
baseURL: 'https://api.helmholtz-blablador.fz-juelich.de/v1',
|
| 8 |
});
|
| 9 |
|