APIError: HTTP code 203 from API when running from a Click CLI app on a local Windows terminal
Labels: name: auto:bug, name: area: models

### System Info

Device name	LAPTOP-3BD5HR1V
Processor	AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx     2.10 GHz
Installed RAM	20.0 GB (17.9 GB usable)
Device ID	F8ACB5C8-80FB-46C6-AE6D-33AD019A5728
Product ID	00325-82110-59554-AAOEM
System type	64-bit operating system, x64-based processor
Pen and touch	No pen or touch input is available for this display

Edition	Windows 11 Home
Version	22H2
Installed on	‎10/‎5/‎2022
OS build	22621.2134
Serial number	PF2WCKPH
Experience	Windows Feature Experience Pack 1000.22659.1000.0

Python 3.11.2
langchain 0.0.272

### Who can help?

@hwchase17
@agola11

### Information

- [ ] The official example notebooks/scripts
- [X] My own modified scripts

### Related Components

- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async

### Reproduction

I have created a Python CLI tool called 'dir-diary' that uses Chain.run to make API calls. The tool is built on `click`. When I run the tool from a terminal window with a Python virtual environment activated, the tool works okay. It also appears to work okay from both Linux-based and Windows-based Github Actions runners. But when I run it from a vanilla Windows terminal on my own machine, langchain fails to authenticate with Azure DevOps after several retries.

There's a whole lot of text returned with the error. The most helpful bits are:

.APIError: HTTP code 203 from API.
'Microsoft Internet Explorer&#39;s Enhanced Security Configuration is currently enabled on your environment. This enhanced level of security prevents our web integration experiences from displaying or performing correctly. To continue with your operation please disable this configuration or contact your administrator'
'Unable to complete authentication for user due to looping logins'
'Traceback (most recent call last):
  File "C:\Users\chris\AppData\Local\Programs\Python\Python311\Lib\site-packages\openai\api_requestor.py", line 755, in _interpret_response_line
    data = json.loads(rbody)
           ^^^^^^^^^^^^^^^^^
  File "C:\Users\chris\AppData\Local\Programs\Python\Python311\Lib\json\__init__.py", line 335, in loads
    raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)'

Steps to reproduce:

I haven't fully figured out the secret to reproducing this yet. Obviously, if it works on a Windows runner, then it's not really a Windows problem. There must be something problematic about my local setup that I can't identify. FWIW, here are my steps:

1. run command `pip install -U dir-diary` from a Windows terminal
2. go to any code project folder
3. run command `summarize`

I have tried running as administrator and turning down the Internet security level through Internet Options in Control Panel, but neither of those solutions fixed the problem.

### Expected behavior

It's supposed to successfully query the API to summarize the project folder.