Skip to content

Commit a79ffd0

Browse files
committed
better prompt
1 parent 57c3414 commit a79ffd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/core/errors/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function getAutoFixes(
8787
const datasourceContext = getDatasourceContext(ctx.cellId);
8888
let initialPrompt = `Fix the SQL statement: ${error.msg}.`;
8989
if (datasourceContext) {
90-
initialPrompt += `\nUse the following tables and schema to form your query: ${datasourceContext}`;
90+
initialPrompt += `\nDatabase schema: ${datasourceContext}`;
9191
}
9292
ctx.aiFix?.setAiCompletionCell({
9393
cellId: ctx.cellId,

0 commit comments

Comments
 (0)