Skip to content
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

Closed
tianchiguaixia opened this issue Nov 8, 2023 · 8 comments
Closed

ner_v3_openai not run #355

tianchiguaixia opened this issue Nov 8, 2023 · 8 comments
Labels
feat/model Feature: models

Comments

@tianchiguaixia
Copy link

!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)

@tianchiguaixia
Copy link
Author

run.zip

@rmitsch
Copy link
Collaborator

rmitsch commented Nov 8, 2023

Hi @tianchiguaixia, please include your code, config and data as formatted text in thread and describe the issue you are encountering.

@rmitsch rmitsch added the feat/model Feature: models label Nov 8, 2023
@tianchiguaixia
Copy link
Author

run.zip

this is my code

@tianchiguaixia
Copy link
Author

run.zip

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

@tianchiguaixia
Copy link
Author

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?

@tianchiguaixia
Copy link
Author

Hi @tianchiguaixia, please include your code, config and data as formatted text in thread and describe the issue you are encountering.

May I ask what is causing this?

@tianchiguaixia
Copy link
Author

There's no problem with the code, it's a network issue. Sorry

@svlandeg
Copy link
Member

svlandeg commented Nov 9, 2023

Thanks for reporting back! Happy to hear it works for you now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/model Feature: models
Projects
None yet
Development

No branches or pull requests

3 participants