Add double dash to DevChat arguments

- Update devchat.ts to include a double dash in the chat() method.
- Ensure proper separation of options and content in the chat() method.
This commit is contained in:
bobo.yang 2023-06-06 21:11:15 +08:00
parent 34ae3923f9
commit 2afe176895

View File

@ -145,6 +145,7 @@ class DevChat {
async chat(content: string, options: ChatOptions = {}, onData: (data: ChatResponse) => void): Promise<ChatResponse> {
const args = await this.buildArgs(options);
args.push("--");
args.push(content);
const workspaceDir = UiUtilWrapper.workspaceFoldersFirstPath();