Spaces:
Build error
Build error
Fix: Set compatibility to strict for Blablador API
#2
by
harvesthealth
- opened
app/api/text-generation/route.ts
CHANGED
|
@@ -3,8 +3,9 @@ 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 |
|
| 10 |
// IMPORTANT! Set the runtime to edge
|
|
|
|
| 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 |
+
compatibility: 'strict',
|
| 9 |
});
|
| 10 |
|
| 11 |
// IMPORTANT! Set the runtime to edge
|