Skip to content

Commit dc31ea2

Browse files
committed
Fix the intelligent update API temperature to 0
1 parent 44d3811 commit dc31ea2

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

packages/vscode/src/commands/apply-chat-response-command/apply-chat-response-command.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ export function apply_chat_response_command(context: vscode.ExtensionContext) {
401401
endpoint_url,
402402
api_key: provider.api_key,
403403
model: file_refactoring_config.model,
404-
temperature: file_refactoring_config.temperature,
405404
clipboard_text: failed_patches_text,
406405
context: context,
407406
is_single_root_folder_workspace
@@ -513,7 +512,6 @@ export function apply_chat_response_command(context: vscode.ExtensionContext) {
513512
endpoint_url,
514513
api_key: provider.api_key,
515514
model: file_refactoring_config.model,
516-
temperature: file_refactoring_config.temperature,
517515
clipboard_text: all_patches_text,
518516
context: context,
519517
is_single_root_folder_workspace
@@ -647,7 +645,6 @@ export function apply_chat_response_command(context: vscode.ExtensionContext) {
647645
endpoint_url,
648646
api_key: provider.api_key,
649647
model: file_refactoring_config.model,
650-
temperature: file_refactoring_config.temperature,
651648
clipboard_text,
652649
context: context,
653650
is_single_root_folder_workspace
@@ -755,7 +752,6 @@ export function apply_chat_response_command(context: vscode.ExtensionContext) {
755752
endpoint_url,
756753
api_key: provider.api_key,
757754
model: file_refactoring_config.model,
758-
temperature: file_refactoring_config.temperature,
759755
clipboard_text,
760756
context: context,
761757
is_single_root_folder_workspace

packages/vscode/src/commands/apply-chat-response-command/handlers/intelligent-update-handler.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ async function process_file(params: {
2424
endpoint_url: string
2525
api_key: string
2626
model: string
27-
temperature: number
2827
file_path: string
2928
file_content: string
3029
instruction: string
@@ -52,7 +51,7 @@ async function process_file(params: {
5251
const body = {
5352
messages,
5453
model: params.model,
55-
temperature: params.temperature
54+
temperature: 0
5655
}
5756

5857
Logger.log({
@@ -145,7 +144,6 @@ export async function handle_intelligent_update(params: {
145144
endpoint_url: string
146145
api_key: string
147146
model: string
148-
temperature: number
149147
clipboard_text: string
150148
context: vscode.ExtensionContext
151149
is_single_root_folder_workspace: boolean
@@ -471,7 +469,6 @@ export async function handle_intelligent_update(params: {
471469
endpoint_url: params.endpoint_url,
472470
api_key: params.api_key,
473471
model: params.model,
474-
temperature: params.temperature,
475472
file_path: file.file_path,
476473
file_content: original_content_for_api, // Send original content to AI
477474
instruction: file.content, // Clipboard content is the instruction

0 commit comments

Comments
 (0)