You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/aiProviders/continue/continueContextProvider.ts
+10-14Lines changed: 10 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,7 @@ import {
11
11
IContextProvider,
12
12
LoadSubmenuItemsArgs,
13
13
}from"../../..";
14
-
15
-
constDB2_SYSTEM_PROMPT=`You are an expert in IBM i, specializing in database features of Db2 for i. Your role is to assist developers in writing and debugging their SQL queries, as well as providing SQL programming advice and best practices.`
prompt+=`Summarize the SELF code errors provided. The SQL Error Logging Facility (SELF) provides a mechanism that can be used to understand when SQL statements are encountering specific SQL errors or warnings. SELF is built into Db2 for i and can be enabled in specific jobs or system wide. Provide additional details about the errors and how to fix them.\n`;
116
-
prompt+=`Errors:\n`;
118
+
letprompt=DB2_SELF_PROMPT.join(" ");
117
119
prompt+=JSON.stringify(selfCodes,null,2);
118
120
119
121
contextItems.push({
@@ -131,24 +133,18 @@ export class db2ContextProvider implements IContextProvider {
exportconstDB2_SYSTEM_PROMPT=`You are an expert in IBM i, specializing in database features of Db2 for i. Your role is to assist developers in writing and debugging their SQL queries, as well as providing SQL programming advice and best practices.`;
2
+
3
+
exportconstDB2_SELF_PROMPT=[`Db2 for i self code errors\n`,
4
+
`Summarize the SELF code errors provided. The SQL Error Logging Facility (SELF) provides a mechanism that can be used to understand when SQL statements are encountering specific SQL errors or warnings. SELF is built into Db2 for i and can be enabled in specific jobs or system wide. Provide additional details about the errors and how to fix them.\n`,
0 commit comments