You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log is:
(base) I585618@C02GW0H7Q05N autogpt % ./run
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
2024-07-01 16:44:13,113 DEBUG _config.py:79 load_ssl_context verify=True cert=None trust_env=True http2=False
2024-07-01 16:44:13,115 DEBUG _config.py:146 load_verify_locations cafile='/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/certifi/cacert.pem'
2024-07-01 16:44:13,119 DEBUG _config.py:79 load_ssl_context verify=True cert=None trust_env=True http2=False
2024-07-01 16:44:13,119 DEBUG _config.py:146 load_verify_locations cafile='/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/certifi/cacert.pem'
2024-07-01 16:44:13,123 DEBUG _base_client.py:445 Request options: {'method': 'get', 'url': '/openai/v1/models'}
2024-07-01 16:44:13,145 DEBUG _trace.py:85 connect_tcp.started host='api.groq.com' port=443 local_address=None timeout=5.0 socket_options=None
2024-07-01 16:44:13,410 DEBUG _trace.py:85 connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x12ece84d0>
2024-07-01 16:44:13,411 DEBUG _trace.py:85 start_tls.started ssl_context=<ssl.SSLContext object at 0x12ee03da0> server_hostname='api.groq.com' timeout=5.0
2024-07-01 16:44:13,726 DEBUG _trace.py:85 start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x12f02f510>
2024-07-01 16:44:13,727 DEBUG _trace.py:85 send_request_headers.started request=<Request [b'GET']>
2024-07-01 16:44:13,728 DEBUG _trace.py:85 send_request_headers.complete
2024-07-01 16:44:13,728 DEBUG _trace.py:85 send_request_body.started request=<Request [b'GET']>
2024-07-01 16:44:13,728 DEBUG _trace.py:85 send_request_body.complete
2024-07-01 16:44:13,728 DEBUG _trace.py:85 receive_response_headers.started request=<Request [b'GET']>
2024-07-01 16:44:14,105 DEBUG _trace.py:85 receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 01 Jul 2024 08:44:14 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Cache-Control', b'private, max-age=0, no-store, no-cache, must-revalidate'), (b'vary', b'Origin'), (b'x-request-id', b'req_01j1pqekqzfsa8zh0zrefz00hm'), (b'via', b'1.1 google'), (b'alt-svc', b'h3=":443"; ma=86400'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=ejoFogJqDD6FgY2J919Ige13CzZgYzsNNrI95NfVflw-1719823454-1.0.1.1-XGDzKNczgFyO.aMQspK6cg.Tg83vaDV6058t1Tpp8tqe8MXRNCt_BRiv7uCeOIHFVz60.3xGDfWtU2xW45yLeQ; path=/; expires=Mon, 01-Jul-24 09:14:14 GMT; domain=.groq.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'89c51cea8b1930c9-FRA'), (b'Content-Encoding', b'gzip')])
2024-07-01 16:44:14,108 INFO _client.py:1729 HTTP Request: GET https://api.groq.com/openai/v1/models "HTTP/1.1 200 OK"
2024-07-01 16:44:14,109 DEBUG _trace.py:85 receive_response_body.started request=<Request [b'GET']>
2024-07-01 16:44:14,109 DEBUG _trace.py:85 receive_response_body.complete
2024-07-01 16:44:14,110 DEBUG _trace.py:85 response_closed.started
2024-07-01 16:44:14,110 DEBUG _trace.py:85 response_closed.complete
2024-07-01 16:44:14,110 DEBUG _base_client.py:1543 HTTP Request: GET https://api.groq.com/openai/v1/models "200 OK"
2024-07-01 16:44:14,114 ERROR config.py:201 Set your OpenAI API key in .env or as an environment variable
2024-07-01 16:44:14,114 INFO config.py:204 For further instructions: https://docs.agpt.co/autogpt/setup/#openai
Traceback (most recent call last):
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/config.py", line 195, in assert_config_has_required_llm_api_keys
openai = OpenAIProvider()
^^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/openai.py", line 322, in init
super(OpenAIProvider, self).init(settings=settings, logger=logger)
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/_openai_base.py", line 131, in init
super(BaseOpenAIChatProvider, self).init(settings=settings, logger=logger)
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/_openai_base.py", line 430, in init
super(BaseOpenAIEmbeddingProvider, self).init(
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/openai_base.py", line 74, in init
].type.from_env()
^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/forge/forge/models/config.py", line 63, in from_env
return _recursive_init_model(cls, infer_field_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/forge/forge/models/config.py", line 186, in _recursive_init_model
return model.parse_obj(user_config_fields)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for OpenAICredentials
api_key
field required (type=value_error.missing)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/cli.py", line 206, in serve
run_auto_gpt_server(
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/utils.py", line 245, in wrapper
return asyncio.run(f(*args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/anaconda3/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Users/I585618/anaconda3/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/main.py", line 385, in run_auto_gpt_server
await assert_config_has_required_llm_api_keys(config)
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/config.py", line 207, in assert_config_has_required_llm_api_keys
raise ValueError("OpenAI is unavailable: can't load credentials")
ValueError: OpenAI is unavailable: can't load credentials
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
following the:: https://github.com/Significant-Gravitas/AutoGPT/blob/master/docs/content/AutoGPT/setup/index.md#setting-up-llm-providers
log is:
(base) I585618@C02GW0H7Q05N autogpt % ./run
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
2024-07-01 16:44:13,113 DEBUG _config.py:79 load_ssl_context verify=True cert=None trust_env=True http2=False
2024-07-01 16:44:13,115 DEBUG _config.py:146 load_verify_locations cafile='/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/certifi/cacert.pem'
2024-07-01 16:44:13,119 DEBUG _config.py:79 load_ssl_context verify=True cert=None trust_env=True http2=False
2024-07-01 16:44:13,119 DEBUG _config.py:146 load_verify_locations cafile='/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/certifi/cacert.pem'
2024-07-01 16:44:13,123 DEBUG _base_client.py:445 Request options: {'method': 'get', 'url': '/openai/v1/models'}
2024-07-01 16:44:13,145 DEBUG _trace.py:85 connect_tcp.started host='api.groq.com' port=443 local_address=None timeout=5.0 socket_options=None
2024-07-01 16:44:13,410 DEBUG _trace.py:85 connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x12ece84d0>
2024-07-01 16:44:13,411 DEBUG _trace.py:85 start_tls.started ssl_context=<ssl.SSLContext object at 0x12ee03da0> server_hostname='api.groq.com' timeout=5.0
2024-07-01 16:44:13,726 DEBUG _trace.py:85 start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x12f02f510>
2024-07-01 16:44:13,727 DEBUG _trace.py:85 send_request_headers.started request=<Request [b'GET']>
2024-07-01 16:44:13,728 DEBUG _trace.py:85 send_request_headers.complete
2024-07-01 16:44:13,728 DEBUG _trace.py:85 send_request_body.started request=<Request [b'GET']>
2024-07-01 16:44:13,728 DEBUG _trace.py:85 send_request_body.complete
2024-07-01 16:44:13,728 DEBUG _trace.py:85 receive_response_headers.started request=<Request [b'GET']>
2024-07-01 16:44:14,105 DEBUG _trace.py:85 receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Mon, 01 Jul 2024 08:44:14 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Cache-Control', b'private, max-age=0, no-store, no-cache, must-revalidate'), (b'vary', b'Origin'), (b'x-request-id', b'req_01j1pqekqzfsa8zh0zrefz00hm'), (b'via', b'1.1 google'), (b'alt-svc', b'h3=":443"; ma=86400'), (b'CF-Cache-Status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=ejoFogJqDD6FgY2J919Ige13CzZgYzsNNrI95NfVflw-1719823454-1.0.1.1-XGDzKNczgFyO.aMQspK6cg.Tg83vaDV6058t1Tpp8tqe8MXRNCt_BRiv7uCeOIHFVz60.3xGDfWtU2xW45yLeQ; path=/; expires=Mon, 01-Jul-24 09:14:14 GMT; domain=.groq.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'89c51cea8b1930c9-FRA'), (b'Content-Encoding', b'gzip')])
2024-07-01 16:44:14,108 INFO _client.py:1729 HTTP Request: GET https://api.groq.com/openai/v1/models "HTTP/1.1 200 OK"
2024-07-01 16:44:14,109 DEBUG _trace.py:85 receive_response_body.started request=<Request [b'GET']>
2024-07-01 16:44:14,109 DEBUG _trace.py:85 receive_response_body.complete
2024-07-01 16:44:14,110 DEBUG _trace.py:85 response_closed.started
2024-07-01 16:44:14,110 DEBUG _trace.py:85 response_closed.complete
2024-07-01 16:44:14,110 DEBUG _base_client.py:1543 HTTP Request: GET https://api.groq.com/openai/v1/models "200 OK"
2024-07-01 16:44:14,114 ERROR config.py:201 Set your OpenAI API key in .env or as an environment variable
2024-07-01 16:44:14,114 INFO config.py:204 For further instructions: https://docs.agpt.co/autogpt/setup/#openai
Traceback (most recent call last):
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/config.py", line 195, in assert_config_has_required_llm_api_keys
openai = OpenAIProvider()
^^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/openai.py", line 322, in init
super(OpenAIProvider, self).init(settings=settings, logger=logger)
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/_openai_base.py", line 131, in init
super(BaseOpenAIChatProvider, self).init(settings=settings, logger=logger)
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/_openai_base.py", line 430, in init
super(BaseOpenAIEmbeddingProvider, self).init(
File "/Users/I585618/pyProj/AutoGPT/forge/forge/llm/providers/openai_base.py", line 74, in init
].type.from_env()
^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/forge/forge/models/config.py", line 63, in from_env
return _recursive_init_model(cls, infer_field_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/forge/forge/models/config.py", line 186, in _recursive_init_model
return model.parse_obj(user_config_fields)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for OpenAICredentials
api_key
field required (type=value_error.missing)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/Library/Caches/pypoetry/virtualenvs/agpt-S5M3drBZ-py3.11/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/cli.py", line 206, in serve
run_auto_gpt_server(
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/utils.py", line 245, in wrapper
return asyncio.run(f(*args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/anaconda3/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Users/I585618/anaconda3/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/I585618/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/main.py", line 385, in run_auto_gpt_server
await assert_config_has_required_llm_api_keys(config)
File "/Users/I585618/pyProj/AutoGPT/autogpt/autogpt/app/config.py", line 207, in assert_config_has_required_llm_api_keys
raise ValueError("OpenAI is unavailable: can't load credentials")
ValueError: OpenAI is unavailable: can't load credentials
Beta Was this translation helpful? Give feedback.
All reactions