fix(docker): make OPENAI_API_KEY optional in docker run (#448)

This commit is contained in:
Guy Ben-Aharon
2024-11-26 12:32:20 +02:00
committed by GitHub
parent 24db32369a
commit 4bb4766e1a
7 changed files with 24 additions and 3 deletions

View File

@@ -219,7 +219,7 @@ export const exportSQL = async (
]);
const openai = createOpenAI({
apiKey: OPENAI_API_KEY,
apiKey: window?.env?.OPENAI_API_KEY ?? OPENAI_API_KEY,
});
const prompt = generateSQLPrompt(databaseType, sqlScript);