Giter Club home page Giter Club logo

autogen_tutorial's People

Contributors

john-adeojo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autogen_tutorial's Issues

I GET Failed to establish a new connection: [Errno 61] Connection refused

(base) bibop@BibopNewMacBook pyautogen % python SwarmAgents.py

PRINT SYS: /Users/bibop/.pyenv/versions/3.10.0/bin/python
models to use OpenAI: ['gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-4-1106-preview', 'gpt-4']

chat_manager (to chat_manager):

How many Germans live in the colonial
holding in Aruba’s continent that was governed by Prazeres’s country?


[autogen.oai.completion: 11-13 00:20:14] {230} INFO - retrying in 10 seconds...
Traceback (most recent call last):
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection
raise err
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/connectionpool.py", line 416, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/http/client.py", line 1276, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/http/client.py", line 1322, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/http/client.py", line 1271, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/http/client.py", line 1031, in _send_output
self.send(msg)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/http/client.py", line 969, in send
self.connect()
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x2ae8b5270>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=1234): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2ae8b5270>: Failed to establish a new connection: [Errno 61] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/openai/api_requestor.py", line 606, in request_raw
result = _thread_context.session.request(
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=1234): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2ae8b5270>: Failed to establish a new connection: [Errno 61] Connection refused'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/autogen/oai/completion.py", line 222, in _get_response
response = openai_completion.create(**config)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 155, in create
response, _, api_key = requestor.request(
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/openai/api_requestor.py", line 289, in request
result = self.request_raw(
File "/Users/bibop/.pyenv/versions/3.10.0/lib/python3.10/site-packages/openai/api_requestor.py", line 619, in request_raw
raise error.APIConnectionError(
openai.error.APIConnectionError: Error communicating with OpenAI: HTTPConnectionPool(host='localhost', port=1234): Max retries exceeded with url: /v1/chat/completions (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2ae8b5270>: Failed to establish a new connection: [Errno 61] Connection refused'))

_**I'm getting this error even if I installed everything in a separated virtual environment. Any idea on how I can fix it?
Thanks a lot for the grat job you're doing!

Bibop Gresta**_

Much less verbose message

Hi John,

Thanks for the tutorial, both on youtube and medium. You have a new subscriber. So, the code works, the only thing is I'm not receiving as verbose a response. Rather than the response you received, I receiving a much shorter response--The TERMINATE message takes the place of the reporters last message, the reference links, etc. please advise, where I went wrong?

chat_manager (to chat_manager):

How many Germans live in the colonial
holding in Aruba’s continent that was governed by Prazeres’s country?


analyst (to chat_manager):

***** Suggested function Call: search_and_index_wikipedia *****
Arguments:
{"hops":["Germans","colonial holding in Aruba's continent","Prazeres's country"]}



EXECUTING FUNCTION search_and_index_wikipedia...
Searching Wikipedia for: Germans - Found: ['Germans', 'Germany']
Searching Wikipedia for: colonial holding in Aruba's continent - Found: ['Aruba', 'Europe']
Searching Wikipedia for: Prazeres's country - Found: ['Michel Prazeres', 'Prazeres, Madeira']
Preparing to index Wikipages: ['Germans', 'Germany', 'Aruba', 'Europe', 'Michel Prazeres', 'Prazeres, Madeira']
Preparing to Download:['Germans', 'Germany', 'Aruba', 'Europe', 'Michel Prazeres', 'Prazeres, Madeira']
Finished downloading pages
['Germans', 'Germany', 'Aruba', 'Europe', 'Michel Prazeres', 'Prazeres, Madeira'] have been indexed.
user_proxy (to chat_manager):
...

TERMINATE


Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.