Merge branch 'main' of https://github.com/continuedev/continue
This commit is contained in:
commit
cf3d02c198
2 changed files with 6 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class Models:
|
|||
def __load_openai_model(self, model: str) -> OpenAI:
|
||||
async def load_openai_model():
|
||||
api_key = await self.sdk.get_user_secret(
|
||||
'OPENAI_API_KEY', 'Enter your OpenAI API key, OR press enter to try for free')
|
||||
'OPENAI_API_KEY', 'Enter your OpenAI API key or press enter to try for free')
|
||||
if api_key == "":
|
||||
return ProxyServer(self.sdk.ide.unique_id, model)
|
||||
return OpenAI(api_key=api_key, default_model=model)
|
||||
|
|
|
|||
|
|
@ -195,6 +195,11 @@ async function setupPythonEnv() {
|
|||
if (checkEnvExists()) {
|
||||
break;
|
||||
} else if (stderr) {
|
||||
if (stderr.includes("Running Scripts is Disabled on this System")) {
|
||||
vscode.window.showErrorMessage(
|
||||
"A Python virtual enviroment cannot be activated because running scripts is disabled for this user. Please enable signed scripts to run with this command in PowerShell: `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`, reload VS Code, and then try again."
|
||||
);
|
||||
}
|
||||
throw new Error(stderr);
|
||||
} else {
|
||||
// Remove the env and try again
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue