mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Support for attempt and enableCommandDetection in chat model/service (#209826)
* add `IChatRequestModel#attempt` so that rerun request/response can be supported * - support to run with/without command detection enabled - adopt agent brigde to new chat request - add share rerun-commands (but only enable them for inline chat for now)
This commit is contained in:
@@ -82,8 +82,8 @@ class BridgeAgent implements IChatAgentImplementation {
|
||||
const inlineRequest: IInlineChatRequest = {
|
||||
requestId: request.requestId,
|
||||
prompt: request.message,
|
||||
attempt: session.lastInput.attempt,
|
||||
withIntentDetection: session.lastInput.withIntentDetection,
|
||||
attempt: request.attempt ?? 0,
|
||||
withIntentDetection: request.enableCommandDetection ?? true,
|
||||
live: session.editMode !== EditMode.Preview,
|
||||
previewDocument: session.textModelN.uri,
|
||||
selection: editor.getSelection()!,
|
||||
|
||||
Reference in New Issue
Block a user