small fixes + save when clicked on last updated

This commit is contained in:
johnnyfish
2024-08-23 12:57:01 +03:00
parent 599f0c559d
commit 0a1b7ab7d7
3 changed files with 29 additions and 14 deletions

View File

@@ -124,6 +124,7 @@ export const exportSQL = async (
model: openai('gpt-4o-mini-2024-07-18'),
prompt: prompt,
});
// const text = '';
return text;
};
@@ -259,7 +260,9 @@ const generateSQLPrompt = (databaseType: string, sqlScript: string) => {
}[databaseType] || '';
const additionalInstructions = `
Just answer with the script with no additional details. give the commands flat without markdown.
**Provide just the SQL commands without markdown tags.**
Just answer with the script with no additional details.
No images are allowed. Do not try to generate or link images, including base64 data URLs.