remove User and Date in response

This commit is contained in:
bobo.yang 2023-12-07 09:11:21 +08:00
parent 6bfb39a3bc
commit a86a2c0ca8

View File

@ -194,11 +194,11 @@ class DevChat {
private async runCommand(args: string[]): Promise<{code: number | null, stdout: string, stderr: string}> { private async runCommand(args: string[]): Promise<{code: number | null, stdout: string, stderr: string}> {
// build env variables for command // build env variables for command
const envs = { const envs = {
...process.env,
// eslint-disable-next-line @typescript-eslint/naming-convention // eslint-disable-next-line @typescript-eslint/naming-convention
"PYTHONUTF8":1, "PYTHONUTF8":1,
// eslint-disable-next-line @typescript-eslint/naming-convention // eslint-disable-next-line @typescript-eslint/naming-convention
"PYTHONPATH": UiUtilWrapper.extensionPath() + "/tools/site-packages", "PYTHONPATH": UiUtilWrapper.extensionPath() + "/tools/site-packages"
...process.env
}; };
const pythonApp = UiUtilWrapper.getConfiguration("DevChat", "PythonForChat") || "python3"; const pythonApp = UiUtilWrapper.getConfiguration("DevChat", "PythonForChat") || "python3";
@ -291,7 +291,7 @@ class DevChat {
"prompt-hash": logs[0]['hash'], "prompt-hash": logs[0]['hash'],
user: "", user: "",
date: "", date: "",
response: stdout, response: responseData.response,
// eslint-disable-next-line @typescript-eslint/naming-convention // eslint-disable-next-line @typescript-eslint/naming-convention
finish_reason: "", finish_reason: "",
isError: false, isError: false,