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

calling openai chat completions api returns error #151

Open
chenlizhao opened this issue Mar 8, 2024 · 0 comments
Open

calling openai chat completions api returns error #151

chenlizhao opened this issue Mar 8, 2024 · 0 comments

Comments

@chenlizhao
Copy link

DEBUG:openai._base_client:Request options: {'method': 'post', 'url': '/chat/completions', 'files': None, 'json_data': {'messages': [{'role': 'user', 'content': 'ping'}], 'model': 'gpt-3.5-turbo', 'max_tokens': 20, 'stream': False, 'temperature': 0}}
DEBUG:httpcore.connection:connect_tcp.started host='openai.aihey.cc' port=443 local_address=None timeout=5.0 socket_options=None
DEBUG:httpcore.connection:connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x7f7bcad29900>
DEBUG:httpcore.connection:start_tls.started ssl_context=<gevent.ssl.SSLContext object at 0x7f7bcadb66c0> server_hostname='openai.aihey.cc' timeout=5.0
DEBUG:httpcore.connection:start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x7f7bcad28070>
DEBUG:httpcore.http11:send_request_headers.started request=<Request [b'POST']>
DEBUG:httpcore.http11:send_request_headers.complete
DEBUG:httpcore.http11:send_request_body.started request=<Request [b'POST']>
DEBUG:httpcore.http11:send_request_body.complete
DEBUG:httpcore.http11:receive_response_headers.started request=<Request [b'POST']>
DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 431, b'Unknown Status', [(b'Content-Type', b'text/html'), (b'X-Api-RequestId', b'0d291c1e3b81a29a52271d386730e07e'), (b'Alt-Svc', b'h3=":443"; ma=86400'), (b'Cf-Cache-Status', b'DYNAMIC'), (b'Cf-Ray', b'861143cb3e75cfdd-SJC'), (b'Content-Encoding', b'gzip'), (b'Set-Cookie', b'__cf_bm=IQBXWBv9wW9NUx9OxrV8a8ycTOu1xM7RfuSpCLPXAY0-1709884546-1.0.1.1-Uc7rzRs6M6VrjFvTnod0xkgFgCHoetVmrfYAfAK7Rxvr.qd96KnmVT.YD3S.LnGJPwp9eKo5kKzPhF5cnzue8A; path=/; expires=Fri, 08-Mar-24 08:25:46 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Set-Cookie', b'_cfuvid=e3.XPul9RQlBjlJvKwD5F2XAo6_kNsEZcODzk57Lafs-1709884546138-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Vary', b'Accept-Encoding'), (b'X-Ratelimit-Limit-Requests', b'200'), (b'X-Ratelimit-Limit-Tokens', b'40000'), (b'X-Ratelimit-Remaining-Requests', b'199'), (b'X-Ratelimit-Remaining-Tokens', b'39978'), (b'X-Ratelimit-Reset-Requests', b'7m12s'), (b'X-Ratelimit-Reset-Tokens', b'33ms'), (b'Server', b'E0MID'), (b'Date', b'Fri, 08 Mar 2024 07:55:46 GMT'), (b'X-Cache-Lookup', b'Cache Miss'), (b'Transfer-Encoding', b'chunked'), (b'X-NWS-LOG-UUID', b'2676025226467353622'), (b'Connection', b'keep-alive'), (b'X-Cache-Lookup', b'Cache Miss'), (b'Strict-Transport-Security', b'max-age=5;includeSubDomains')])
INFO:httpx:HTTP Request: POST https://openai.aihey.cc/openai/v1/chat/completions "HTTP/1.1 431 Unknown Status"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant