Merge pull request #334 from devchat-ai/fix_ask_code_encode_error

fix encode error for ask-code
This commit is contained in:
boob.yang 2023-10-30 08:57:39 +08:00 committed by GitHub
commit 80008974da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,10 @@ export async function askCode(message: any, panel: vscode.WebviewPanel|vscode.We
return ;
}
let envs = {};
let envs = {
PYTHONUTF8:1,
...process.env,
};
const llmModelData = await ApiKeyManager.llmModel();
if (!llmModelData) {