callanwu commited on
Commit
0dfa3da
1 Parent(s): 73b165a
Files changed (1) hide show
  1. src/agents/LLM/base_LLM.py +3 -3
src/agents/LLM/base_LLM.py CHANGED
@@ -51,9 +51,9 @@ class OpenAILLM(LLM):
51
  return LLM's response
52
  """
53
  openai.api_key = os.environ["API_KEY"]
54
- if "PROXY" in os.environ:
55
- assert "http:" in os.environ["PROXY"] or "socks" in os.environ["PROXY"],"PROXY error,PROXY must be http or socks"
56
- openai.proxy = os.environ["PROXY"]
57
  if "API_BASE" in os.environ:
58
  openai.api_base = os.environ["API_BASE"]
59
  active_mode = True if ("ACTIVE_MODE" in os.environ and os.environ["ACTIVE_MODE"] == "0") else False
 
51
  return LLM's response
52
  """
53
  openai.api_key = os.environ["API_KEY"]
54
+ # if "PROXY" in os.environ:
55
+ # assert "http:" in os.environ["PROXY"] or "socks" in os.environ["PROXY"],"PROXY error,PROXY must be http or socks"
56
+ # openai.proxy = os.environ["PROXY"]
57
  if "API_BASE" in os.environ:
58
  openai.api_base = os.environ["API_BASE"]
59
  active_mode = True if ("ACTIVE_MODE" in os.environ and os.environ["ACTIVE_MODE"] == "0") else False