@@ -2,7 +2,7 @@ import * as vscode from 'vscode'
22import * as fs from 'fs'
33import * as path from 'path'
44import { OriginalFileState } from './types/original-file-state'
5- import { ApiConfiguration } from '@shared/types/response-history-item'
5+ import { RecentApiConfiguration } from '@shared/types/response-history-item'
66import { handle_restore_preview } from './handlers/restore-preview-handler'
77import {
88 FileItem ,
@@ -49,7 +49,7 @@ export type ApplyChatResponseCommandArgs = {
4949 relevant_files ?: RelevantFileInPreview [ ]
5050 created_at ?: number
5151 url ?: string
52- api_configuration ?: ApiConfiguration
52+ recent_api_configuration ?: RecentApiConfiguration
5353}
5454
5555export const process_chat_response = async ( params : {
@@ -182,7 +182,7 @@ export const process_chat_response = async (params: {
182182 created_at : created_at_for_preview ,
183183 relevant_files : files_for_preview ,
184184 url : params . args ?. url ,
185- api_configuration : params . args ?. api_configuration
185+ recent_api_configuration : params . args ?. recent_api_configuration
186186 }
187187 history . push ( new_item )
188188 } else {
@@ -208,7 +208,7 @@ export const process_chat_response = async (params: {
208208 raw_instructions : params . args ?. raw_instructions ,
209209 created_at : created_at_for_preview ,
210210 url : params . args ?. url ,
211- api_configuration : params . args ?. api_configuration
211+ recent_api_configuration : params . args ?. recent_api_configuration
212212 } )
213213
214214 const decision = await new Promise < PreviewDecision > ( ( resolve ) => {
0 commit comments