hakieh / bing_api Goto Github PK
View Code? Open in Web Editor NEWunofficial api for new bing
unofficial api for new bing
(bing) E:\Code_folder\Bing_api-main>python EdgeGPT.py
EdgeGPT - A demo of reverse engineering the Bing GPT chatbot
Repo: github.com/acheong08/EdgeGPT
By: Antonio Cheong
!help for help
Type !exit to exit
Initializing...
Enter alt+enter
or escape+enter
to send a message
Traceback (most recent call last):
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_exceptions.py", line 10, in map_exceptions
yield
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_backends\sync.py", line 206, in connect_tcp
sock = socket.create_connection(
File "E:\Anaconda3\envs\bing\lib\socket.py", line 823, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "E:\Anaconda3\envs\bing\lib\socket.py", line 954, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11002] getaddrinfo failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_transports\default.py", line 66, in map_httpcore_exceptions
yield
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_transports\default.py", line 228, in handle_request
resp = self._pool.handle_request(req)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_sync\connection_pool.py", line 268, in handle_request
raise exc
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_sync\connection_pool.py", line 251, in handle_request
response = connection.handle_request(request)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_sync\connection.py", line 99, in handle_request
raise exc
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_sync\connection.py", line 76, in handle_request
stream = self._connect(request)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_sync\connection.py", line 124, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_backends\sync.py", line 213, in connect_tcp
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
File "E:\Anaconda3\envs\bing\lib\contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 11002] getaddrinfo failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\Code_folder\Bing_api-main\EdgeGPT.py", line 532, in
asyncio.run(main())
File "E:\Anaconda3\envs\bing\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "E:\Anaconda3\envs\bing\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "E:\Code_folder\Bing_api-main\EdgeGPT.py", line 421, in main
bot = Chatbot(proxy=args.proxy)
File "E:\Code_folder\Bing_api-main\EdgeGPT.py", line 345, in init
Conversation(self.cookiePath, self.cookies, self.proxy),
File "E:\Code_folder\Bing_api-main\EdgeGPT.py", line 240, in init
response = self.session.get(
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_client.py", line 1041, in get
return self.request(
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_client.py", line 814, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_client.py", line 901, in send
response = self._send_handling_auth(
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_client.py", line 929, in _send_handling_auth
response = self._send_handling_redirects(
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_client.py", line 966, in _send_handling_redirects
response = self._send_single_request(request)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_client.py", line 1002, in _send_single_request
response = transport.handle_request(request)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_transports\default.py", line 228, in handle_request
resp = self._pool.handle_request(req)
File "E:\Anaconda3\envs\bing\lib\contextlib.py", line 137, in exit
self.gen.throw(typ, value, traceback)
File "E:\Anaconda3\envs\bing\lib\site-packages\httpx_transports\default.py", line 83, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 11002] getaddrinfo failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.