Skip to content

Commit 1aa49dc

Browse files
committed
Rename fake_chat_response to markdown_response_for_active_editor in response processor
- suggest other name for 'fake_chat_response'
1 parent 23f7629 commit 1aa49dc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/editor/src/commands/apply-chat-response-command/response-processor.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export const process_chat_response = async (params: {
557557
.asRelativePath(document.uri, !is_single_root_folder_workspace)
558558
.replace(/\\/g, '/')
559559

560-
const fake_chat_response = `\`\`\`\n// ${file_path_for_block}\n${params.chat_response}\n\`\`\``
560+
const markdown_response_for_active_editor = `\`\`\`\n// ${file_path_for_block}\n${params.chat_response}\n\`\`\``
561561

562562
const model_providers_manager = new ModelProvidersManager(
563563
params.context
@@ -583,7 +583,7 @@ export const process_chat_response = async (params: {
583583
endpoint_url,
584584
api_key: model_provider.api_key,
585585
api_configuration: intelligent_update_api_configuration,
586-
chat_response: fake_chat_response,
586+
chat_response: markdown_response_for_active_editor,
587587
context: params.context,
588588
is_single_root_folder_workspace,
589589
panel_provider: params.panel_provider
@@ -594,13 +594,13 @@ export const process_chat_response = async (params: {
594594
context: params.context,
595595
panel_provider: params.panel_provider,
596596
states: intelligent_update_states,
597-
applied_content: fake_chat_response,
597+
applied_content: markdown_response_for_active_editor,
598598
original_editor_state: params.args?.original_editor_state
599599
})
600600

601601
return {
602602
original_states: intelligent_update_states,
603-
chat_response: fake_chat_response
603+
chat_response: markdown_response_for_active_editor
604604
}
605605
}
606606
return null

0 commit comments

Comments
 (0)