Skip to content

Commit bbfac35

Browse files
authored
1 parent ddb8c8b commit bbfac35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/contrib/mcp/common/mcpSamplingService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export class McpSamplingService extends Disposable implements IMcpSamplingServic
6868
};
6969
}).filter(isDefined);
7070

71+
if (opts.params.systemPrompt) {
72+
messages.unshift({ role: ChatMessageRole.System, content: [{ type: 'text', value: opts.params.systemPrompt }] });
73+
}
74+
7175
const model = await this._getMatchingModel(opts);
7276
// todo@connor4312: nullExtensionDescription.identifier -> undefined with API update
7377
const response = await this._languageModelsService.sendChatRequest(model, new ExtensionIdentifier('Github.copilot-chat'), messages, {}, token);

0 commit comments

Comments
 (0)