Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbeaver/pro#2283 fix incorrect prompt conditions & save settings #22692

Open
wants to merge 1 commit into
base: release_23_3_4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ public DAICompletionMessage createMetadataMessage(
"Your query must start with \"SELECT\" and be enclosed with triple backslash on new lines. " +
"Talk naturally, as if you were talking to a human.");
} else if (isChatAPI) {
sb.append("Perform SQL completion. Start response with SELECT keyword. Start every line with \"--\".");
sb.append("Perform SQL completion. Start response with SELECT keyword.\n" +
" Avoid using Markdown. Start every comment line with \"--\".");
} else {
sb.append("Perform SQL completion.");
sb.append("Perform SQL completion. Avoid using Markdown");
}

final String extraInstructions = formatter.getExtraInstructions(monitor, mainObject, executionContext);
Expand Down