Skip to content

Commit

Permalink
feat: Environment variables for proxy (HTTPS_PROXY and ALL_PROXY)
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Feb 9, 2024
1 parent 19a8088 commit 043e731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rplugin/python3/handlers/chat_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import time
from datetime import datetime
from typing import Optional, cast
import os

import prompts as system_prompts
from copilot import Copilot
Expand All @@ -24,7 +25,7 @@ def __init__(self, nvim: MyNvim, buffer: MyBuffer):
self.nvim: MyNvim = nvim
self.copilot: Copilot = None
self.buffer: MyBuffer = buffer
self.proxy: str = None
self.proxy: str = os.getenv("HTTPS_PROXY") or os.getenv("ALL_PROXY") or ""

# public

Expand Down

0 comments on commit 043e731

Please sign in to comment.