Skip to content

Commit fa25aa4

Browse files
committed
refactor: Rename RESPONSES_API_TOOL_TYPES to RESPONSES_API_ALTERNATE_INPUT_TYPES and added the "reasoning" type to the check
1 parent 2252fdc commit fa25aa4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function CopilotAuthPlugin({ client }) {
1313
"Editor-Plugin-Version": "copilot-chat/0.31.2",
1414
"Copilot-Integration-Id": "vscode-chat",
1515
};
16-
const RESPONSES_API_TOOL_TYPES = ["file_search_call", "computer_call", "computer_call_output", "web_search_call", "function_call", "function_call_output", "image_generation_call", "code_interpreter_call", "local_shell_call", "local_shell_call_output", "mcp_list_tools", "mcp_approval_request", "mcp_approval_response", "mcp_call"];
16+
const RESPONSES_API_ALTERNATE_INPUT_TYPES = ["file_search_call", "computer_call", "computer_call_output", "web_search_call", "function_call", "function_call_output", "image_generation_call", "code_interpreter_call", "local_shell_call", "local_shell_call_output", "mcp_list_tools", "mcp_approval_request", "mcp_approval_response", "mcp_call", "reasoning"];
1717

1818
return {
1919
auth: {
@@ -82,7 +82,7 @@ export async function CopilotAuthPlugin({ client }) {
8282

8383
if(body?.input) {
8484
isAgentCall = body.input.some(
85-
(input) => (input.role && ["assistant"].includes(input.role)) || (input.type && RESPONSES_API_TOOL_TYPES.includes(input.type)),
85+
(input) => (input.role && ["assistant"].includes(input.role)) || (input.type && RESPONSES_API_ALTERNATE_INPUT_TYPES.includes(input.type)),
8686
)
8787
isVisionRequest = body.input.some(
8888
(input) =>

0 commit comments

Comments
 (0)