-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ner_v3_openai not run #355
Comments
Hi @tianchiguaixia, please include your code, config and data as formatted text in thread and describe the issue you are encountering. |
this is my code |
!python run_pipeline.py "前白蛋白(PA) 302.65 mg/L 180-400 参考值 2 *总蛋白(TP) 69.9 19*尿酸(URIC) 542.06 umol/L 1 148.8-416.5 g/L 65-85 20 " ./fewshot.cfg ./examples.json |
I don't know if there was a problem with my code or with the OpenAI request. Anyway, if you know any reason, can you tell me? |
May I ask what is causing this? |
There's no problem with the code, it's a network issue. Sorry |
Thanks for reporting back! Happy to hear it works for you now. |
!python run_pipeline.py "前白蛋白(PA) 302.65 mg/L 180-400 参考值 2 *总蛋白(TP) 69.9 19*尿酸(URIC) 542.06 umol/L 1 148.8-416.5 g/L 65-85 20 " ./fewshot.cfg ./examples.json
error:Traceback (most recent call last):
File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "D:\anaconda\lib\http\client.py", line 1374, in getresponse
response.begin()
File "D:\anaconda\lib\http\client.py", line 318, in begin
version, status, reason = self._read_status()
File "D:\anaconda\lib\http\client.py", line 279, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "D:\anaconda\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "D:\anaconda\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "D:\anaconda\lib\ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\anaconda\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "D:\anaconda\lib\site-packages\urllib3\util\retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "D:\anaconda\lib\site-packages\urllib3\packages\six.py", line 770, in reraise
raise value
File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 451, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "D:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 340, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.openai.com', port=443): Read timed out. (read timeout=30)
The text was updated successfully, but these errors were encountered: