diff --git a/packages/backend/src/managers/playground.ts b/packages/backend/src/managers/playground.ts index bd7a7e2b1..3665bccc4 100644 --- a/packages/backend/src/managers/playground.ts +++ b/packages/backend/src/managers/playground.ts @@ -206,7 +206,7 @@ export class PlayGroundManager { prompt: prompt, }; - const client = new OpenAI({ baseURL: `http://localhost:${state.container.port}/v1` }); + const client = new OpenAI({ baseURL: `http://localhost:${state.container.port}/v1`, apiKey: 'dummy' }); const response = await client.completions.create({ model: modelInfo.file,