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/chat/chat.ts
+25-22Lines changed: 25 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,6 @@ export function activateChat(context: vscode.ExtensionContext) {
60
60
return{metadata: {command: "activity"}};
61
61
62
62
default:
63
-
context;
64
63
stream.progress(
65
64
`Getting information from ${Statement.prettyName(usingSchema)}...`
66
65
);
@@ -71,39 +70,43 @@ export function activateChat(context: vscode.ExtensionContext) {
71
70
);
72
71
73
72
messages=[
74
-
vscode.LanguageModelChatMessage.User(
73
+
vscode.LanguageModelChatMessage.Assistant(
75
74
`You are a an IBM i savant speciallizing in database features in Db2 for i. Your job is to help developers write and debug their SQL along with offering SQL programming advice.`
76
75
),
76
+
vscode.LanguageModelChatMessage.Assistant(
77
+
`The developers current schema is ${usingSchema}.`
78
+
),
79
+
vscode.LanguageModelChatMessage.Assistant(
80
+
`Provide the developer with SQL statements or relevant information based on the user's prompt and referenced table structures. Always include practical code examples where applicable. Ensure all suggestions are directly applicable to the structures and data provided and avoid making suggestions outside the scope of the available information.`
`Provide the developer with SQL statements or relevant information based on the user's prompt and referenced table structures. Always include practical code examples where applicable. Ensure all suggestions are directly applicable to the structures and data provided and avoid making suggestions outside the scope of the available information.`
100
+
vscode.LanguageModelChatMessage.Assistant(
101
+
`Here are new table references ${JSON.stringify(refs)}`
89
102
),
90
-
vscode.LanguageModelChatMessage.User(
91
-
`Here are the table references ${JSON.stringify(refs)}`
0 commit comments