Skip to content

Commit

Permalink
Merge pull request #190 from langchain-ai/nc/16feb/fix-proxy
Browse files Browse the repository at this point in the history
Fix proxy condition
  • Loading branch information
nfcampos authored Feb 16, 2024
2 parents 96a1b1a + e264667 commit 2638a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/llms.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@lru_cache(maxsize=4)
def get_openai_llm(gpt_4: bool = False, azure: bool = False):
proxy_url = os.getenv("PROXY_URL")
if proxy_url is not None or proxy_url != "":
if proxy_url is not None and proxy_url != "":
http_client = httpx.AsyncClient(proxies=proxy_url)
else:
http_client = None
Expand Down

0 comments on commit 2638a98

Please sign in to comment.