open-interpreter
open-interpreter copied to clipboard
Death spiral, ending in openAI rate limit ERROR
Is your feature request related to a problem? Please describe.
litellm.exceptions.RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'Rate limit reached for gpt-4 in organization org-lgQ******************** on tokens_usage_based per min: Limit 10000, Used 6353, Requested 4265. Please try again in 3.708s. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens_usage_based', 'param': None, 'code': 'rate_limit_exceeded'}} ... ... [IPKernelApp] WARNING | Parent appears to have exited, shutting down.
Describe the solution you'd like
when OI encounters this error, do something.
- intercept the error
- wait the proscribed number of seconds
- issue error report to user screen
- play elevator music
- proceed without dying
Describe alternatives you've considered
I asked OI to handle rate limiting (to 10000 tokens per second), and it agreed to, but it decided to also shut down other functions, like web scraping and os functions.
Additional context
No response
There appears to be some kind of death loop here. Including the entire output for context ...
with open('downloaded_pdf.pdf', 'wb') as pdf_file:
pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
return func(*args, **kwargs)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\openai\resources\chat\completions.py", line 645, in create
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
return self._post(
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\openai_base_client.py", line 1088, in post
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\openai_base_client.py", line 853, in request
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
return self._request(
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\openai_base_client.py", line 930, in _request
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise self._make_status_error_from_response(err.response) from None
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: x. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
During handling of the above exception, another exception occurred:
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
Traceback (most recent call last):
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\llm\llm.py", line 203, in fixed_litellm_completions
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
yield from litellm.completion(**params)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 2113, in wrapper
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise e
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 2020, in wrapper
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
result = original_function(*args, **kwargs)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\main.py", line 1743, in completion
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise exception_type(
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 6507, in exception_type
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise e
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 5475, in exception_type
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise AuthenticationError(
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
litellm.exceptions.AuthenticationError: OpenAIException - Error code: 401 - {'error': {'message': 'Incorrect API key provided: x. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
During handling of the above exception, another exception occurred:
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
Traceback (most recent call last):
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Scripts\interpreter.exe_main_.py", line 7, in
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\core.py", line 23, in start_terminal_interface
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
start_terminal_interface(self)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\terminal_interface\start_terminal_interface.py", line 636, in start_terminal_interface
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
interpreter.chat()
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\core.py", line 68, in chat
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
for _ in self._streaming_chat(message=message, display=display):
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\core.py", line 80, in _streaming_chat
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
yield from terminal_interface(self, message)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\terminal_interface\terminal_interface.py", line 136, in terminal_interface
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
for chunk in interpreter.chat(message, display=False, stream=True):
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\core.py", line 115, in _streaming_chat
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
yield from self._respond_and_store()
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\core.py", line 161, in _respond_and_store
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
for chunk in respond(self):
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\respond.py", line 49, in respond
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
for chunk in interpreter.llm.run(messages_for_llm):
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\llm\llm.py", line 173, in run
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
yield from run_function_calling_llm(self, params)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\llm\run_function_calling_llm.py", line 44, in run_function_calling_llm
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
for chunk in llm.completions(**request_params):
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\llm\llm.py", line 206, in fixed_litellm_completions
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise first_error
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\interpreter\core\llm\llm.py", line 187, in fixed_litellm_completions
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
yield from litellm.completion(**params)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 2113, in wrapper
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise e
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 2020, in wrapper
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
result = original_function(*args, **kwargs)
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\main.py", line 1743, in completion
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise exception_type(
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 6507, in exception_type
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise e
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File "C:\bin\miniconda3\Lib\site-packages\litellm\utils.py", line 5506, in exception_type
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
raise RateLimitError(
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
litellm.exceptions.RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'Rate limit reached for gpt-4 in organization org-lgQKhOnTNrICgvPed2L19JQ3 on tokens_usage_based per min: Limit 10000, Used 6353, Requested 4265. Please try again in 3.708s. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens_usage_based', 'param': None, 'code': 'rate_limit_exceeded'}}
url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' response = requests.get(url)
with open('downloaded_pdf.pdf', 'wb') as pdf_file: pdf_file.write(response.content)
Output truncated. Showing the last 2800 characters.
" response")
289 try:
ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last) Cell In[5], line 4 2 url = 'https://www2.gov.bc.ca/assets/gov/environment/plants-animals-and-ecosystems/invasive-species/alerts/greenfrog_alert.pdf' 3 print('##active_line2##') ----> 4 response = requests.get(url) 5 print('##active_line3##') 6 pass
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request
object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File C:\bin\miniconda3\Lib\site-packages\requests\api.py:59, in request(method, url, **kwargs) 55 # By using the 'with' statement we are sure the session is closed, thus we 56 # avoid leaving sockets open which can trigger a ResourceWarning in some 57 # cases, and look like a memory leak in others. 58 with sessions.Session() as session: ---> 59 return session.request(method=method, url=url, **kwargs)
File C:\bin\miniconda3\Lib\site-packages\requests\sessions.py:589, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 584 send_kwargs = { 585 "timeout": timeout, 586 "allow_redirects": allow_redirects, 587 } 588 send_kwargs.update(settings) --> 589 resp = self.send(prep, **send_kwargs) 591 return resp
File C:\bin\miniconda3\Lib\site-packages\requests\sessions.py:703, in Session.send(self, request, **kwargs) 700 start = preferred_clock() 702 # Send the request --> 703 r = adapter.send(request, **kwargs) 705 # Total elapsed time of the request (approximately) 706 elapsed = preferred_clock() - start
File C:\bin\miniconda3\Lib\site-packages\requests\adapters.py:501, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies) 486 resp = conn.urlopen( 487 method=request.method, 488 url=url, (...) 497 chunked=chunked, 498 ) 500 except (ProtocolError, OSError) as err: --> 501 raise ConnectionError(err, request=request) 503 except MaxRetryError as e: 504 if isinstance(e.reason, ConnectTimeoutError): 505 # TODO: Remove this in 3.0.0: see #2811
ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) [IPKernelApp] WARNING | Parent appears to have exited, shutting down. PS C:\projects> interpreter -y --model gpt-3.5-turbo
I'm getting the same error: [IPKernelApp] WARNING | Parent appears to have exited, shutting down.
yup, this is definately an issue. Scary
Could this be related to Streaming maybe? Looks very intimidating in the terminal when it goes into hyper mode. The text is jumping around all over the place as there are multiple submissions being made.
People should be made aware of this flaw right now, else it breaks their bank account depending on how they are setup with Openai.
Hello ! I'm Tier 1 too and I have the error cause the interpreter is making infinite request when there is an error, any idea to fix that?
Closing this stale issue. If this is still a problem with the latest version of Open Interpreter, please alert me to re-open the issue. Thanks!