Skip to content

Commit 043e731

Browse files
committed
feat: Environment variables for proxy (HTTPS_PROXY and ALL_PROXY)
1 parent 19a8088 commit 043e731

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rplugin/python3/handlers/chat_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import time
22
from datetime import datetime
33
from typing import Optional, cast
4+
import os
45

56
import prompts as system_prompts
67
from copilot import Copilot
@@ -24,7 +25,7 @@ def __init__(self, nvim: MyNvim, buffer: MyBuffer):
2425
self.nvim: MyNvim = nvim
2526
self.copilot: Copilot = None
2627
self.buffer: MyBuffer = buffer
27-
self.proxy: str = None
28+
self.proxy: str = os.getenv("HTTPS_PROXY") or os.getenv("ALL_PROXY") or ""
2829

2930
# public
3031

0 commit comments

Comments
 (0)