mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-05 22:43:30 +00:00
fix(docker): make OPENAI_API_KEY optional in docker run (#448)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user