Fix: Set compatibility to strict for Blablador API

#2
Files changed (1) hide show
  1. app/api/text-generation/route.ts +2 -1
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.HELMHOLTZ_API_KEY || '',
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