Leon4gr45 harvesthealth commited on
Commit
67626b8
·
verified ·
1 Parent(s): 8719fc5

Fix: Set compatibility to strict for Blablador API (#2)

Browse files

- Fix: Set compatibility to strict for Blablador API (d2e921eec435f999b9644f1a8c9a0dc03ad012fc)


Co-authored-by: health <harvesthealth@users.noreply.huggingface.co>

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