microsoft / vscode-commander

MIT License
0 stars 0 forks source link

400 Bad Request when @command show me my files #67

Closed anthonykim1 closed 1 week ago

anthonykim1 commented 1 week ago

Testing: https://github.com/microsoft/vscode-commander/issues/51

I keep getting 400 bad request when I run

@commander show me my files

or other command like

Set a breakpoint => Should set the breakpoint on the current line in the editor

VS Code Commander Version: v0.1.2024102212 Github Copilot Chat: v0.22.2024102202

VS Code Insiders: Version: 1.95.0-insider (Universal) Commit: 804f450ca900d24db25e7174e8b6dfb3fb2a318c Date: 2024-10-22T13:30:10.100Z (4 hrs ago) Electron: 32.2.1 ElectronBuildId: 10427718 Chromium: 128.0.6613.186 Node.js: 20.18.0 V8: 12.8.374.38-electron.0 OS: Darwin arm64 23.6.0

anthonykim1 commented 1 week ago

.copilotmd file for prompt @commander show me my files:

title - 75dc8777 Metadata url : https://api.githubcopilot.com/chat/completions model : gpt-4o-mini maxPromptTokens : 12288 maxResponseTokens: 4096 location : 2 postOptions : {"temperature":0.1,"top_p":1,"max_tokens":4096,"n":1,"stream":true} intent : undefined startTime : 2024-10-22T17:46:56.701Z endTime : 2024-10-22T17:46:57.023Z duration : 322ms ourRequestId : efd16d16-a18d-4f60-809a-b4e8c650828b requestId : efd16d16-a18d-4f60-809a-b4e8c650828b serverRequestId : efd16d16-a18d-4f60-809a-b4e8c650828b timeToFirstToken : 319ms Request Messages System You are an expert in crafting pithy titles for chatbot conversations. You are presented with a chat conversation, and you reply with a brief title that captures the main topic of discussion in that conversation. Follow Microsoft content policies. Avoid content that violates copyrights. If you are asked to generate content that is harmful, hateful, racist, sexist, lewd, violent, or completely irrelevant to software engineering, only respond with "Sorry, I can't assist with that." Keep your answers short and impersonal. System The title should not be wrapped in quotes. It should about 8 words or fewer. Here are some examples of good titles: - Git rebase question - Installing Python packages - Location of LinkedList implentation in codebase - Adding a tree view to a VS Code extension - React useState hook usage User # FILE:BASE.TSX CONTEXT User's current visible code: ```tsx import { AssistantMessage, BasePromptElementProps, PrioritizedList, PromptElement, PromptElementProps, PromptMetadata, PromptPiece, PromptReference, PromptSizing, UserMessage } from '@vscode/prompt-tsx'; import { Chunk, TextChunk, ToolCall, ToolMessage, ToolResult } from '@vscode/prompt-tsx/dist/base/promptElements'; import * as vscode from "vscode"; import { logger } from './logger'; import { RunPythonTool } from './tools'; const ImagePrefix = `8a59d504`; const userMessageWithWithImageFromToolCall = `Return this image link in your response. Do not modify the markdown image link at all. The path is already absolute local file path, do not put "https" or "blob" in the link`; ``` User show me my files User Please write a brief title for the chat conversation above. If the conversation covers multiple topics, you can just focus on the last one. Response Assistant Request to display files
benibenj commented 1 week ago

Are you using the latest insiders version? Does copilot chat work? What about a different the chat participant like the github PR participant?

anthonykim1 commented 1 week ago

Right, latest insiders, chat works in general too. Is @github the github PR participant that you are referring to? Image

sandy081 commented 1 week ago

Fixed.