Skip to content

Commit

Permalink
fix: use a dummy API key
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff MAURY <[email protected]>
  • Loading branch information
jeffmaury committed Feb 2, 2024
1 parent 174d944 commit 79d7dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/managers/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 79d7dfc

Please sign in to comment.