We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I set a goal for agent, and agent connect to openai.
Frontend
2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.Session.id, reworkd_platform.Session.sessionToken, reworkd_platform.Session.userId, reworkd_platform.Session.expires FROM reworkd_platform.Session WHERE reworkd_platform.Session.userId = ? ORDER BY reworkd_platform.Session.expires DESC LIMIT ? OFFSET ? 2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.Session.id, reworkd_platform.Session.sessionToken, reworkd_platform.Session.userId, reworkd_platform.Session.expires FROM reworkd_platform.Session WHERE reworkd_platform.Session.userId = ? ORDER BY reworkd_platform.Session.expires DESC LIMIT ? OFFSET ? 2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.organization_user.id, reworkd_platform.organization_user.user_id, reworkd_platform.organization_user.organization_id, reworkd_platform.organization_user.role, reworkd_platform.organization_user.create_date, reworkd_platform.organization_user.update_date, reworkd_platform.organization_user.delete_date FROM reworkd_platform.organization_user WHERE reworkd_platform.organization_user.user_id = ? 2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.Agent.id, reworkd_platform.Agent.userId, reworkd_platform.Agent.name, reworkd_platform.Agent.goal, reworkd_platform.Agent.deleteDate, reworkd_platform.Agent.createDate FROM reworkd_platform.Agent WHERE (reworkd_platform.Agent.userId = ? AND reworkd_platform.Agent.deleteDate IS NULL) ORDER BY reworkd_platform.Agent.createDate DESC LIMIT ? OFFSET ?
Platform
2024-03-16 17:03:37 2024-03-16 09:03:37.229 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "OPTIONS /api/agent/tools HTTP/1.1" 200 2024-03-16 17:03:37 2024-03-16 09:03:37.234 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "GET /api/agent/tools HTTP/1.1" 200 2024-03-16 17:03:37 2024-03-16 09:03:37.260 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "OPTIONS /api/auth/sid/info HTTP/1.1" 200 2024-03-16 17:03:37 2024-03-16 09:03:37.293 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "GET /api/auth/sid/info HTTP/1.1" 200 2024-03-16 17:03:40 2024-03-16 09:03:40.615 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "OPTIONS /api/agent/start HTTP/1.1" 200 2024-03-16 17:04:01 2024-03-16 09:04:01.893 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI. 2024-03-16 17:04:26 2024-03-16 09:04:26.939 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI. 2024-03-16 17:04:51 2024-03-16 09:04:51.981 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI. 2024-03-16 17:05:17 2024-03-16 09:05:17.041 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 8.0 seconds as it raised APIConnectionError: Error communicating with OpenAI. 2024-03-16 17:05:46 2024-03-16 09:05:46.111 | ERROR | reworkd_platform.web.api.error_handling:platformatic_exception_handler:13 - Error communicating with OpenAI 2024-03-16 17:05:46 Traceback (most recent call last): 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection 2024-03-16 17:05:46 return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa 2024-03-16 17:05:46 │ │ │ │ └ {'ssl': <ssl.SSLContext object at 0x7fc0ac2f4200>, 'family': <AddressFamily.AF_INET: 2>, 'proto': 6, 'flags': <AddressInfo.AI... 2024-03-16 17:05:46 │ │ │ └ (functools.partial(<class 'aiohttp.client_proto.ResponseHandler'>, loop=<uvloop.Loop running=True closed=False debug=False>),... 2024-03-16 17:05:46 │ │ └ <method 'create_connection' of 'uvloop.loop.Loop' objects> 2024-03-16 17:05:46 │ └ <uvloop.Loop running=True closed=False debug=False> 2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410> 2024-03-16 17:05:46 File "uvloop/loop.pyx", line 2084, in create_connection 2024-03-16 17:05:46 raise 2024-03-16 17:05:46 File "uvloop/loop.pyx", line 2079, in uvloop.loop.Loop.create_connection 2024-03-16 17:05:46 await ssl_waiter 2024-03-16 17:05:46 File "uvloop/sslproto.pyx", line 517, in uvloop.loop.SSLProtocol._on_handshake_complete 2024-03-16 17:05:46 raise handshake_exc 2024-03-16 17:05:46 2024-03-16 17:05:46 ConnectionResetError 2024-03-16 17:05:46 2024-03-16 17:05:46 2024-03-16 17:05:46 The above exception was the direct cause of the following exception: 2024-03-16 17:05:46 2024-03-16 17:05:46 2024-03-16 17:05:46 Traceback (most recent call last): 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 678, in arequest_raw 2024-03-16 17:05:46 result = await session.request(**request_kwargs) 2024-03-16 17:05:46 │ │ └ {'method': 'post', 'url': 'https://api.openai.com/v1/chat/completions', 'headers': {'X-OpenAI-Client-User-Agent': '{"bindings... 2024-03-16 17:05:46 │ └ <function ClientSession.request at 0x7fc0ae1c71a0> 2024-03-16 17:05:46 └ <aiohttp.client.ClientSession object at 0x7fc0ac2b91d0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 562, in _request 2024-03-16 17:05:46 conn = await self._connector.connect( 2024-03-16 17:05:46 │ └ None 2024-03-16 17:05:46 └ <aiohttp.client.ClientSession object at 0x7fc0ac2b91d0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect 2024-03-16 17:05:46 proto = await self._create_connection(req, traces, timeout) 2024-03-16 17:05:46 │ │ │ │ └ ClientTimeout(total=600, connect=None, sock_read=None, sock_connect=None) 2024-03-16 17:05:46 │ │ │ └ [] 2024-03-16 17:05:46 │ │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7fc0ac293150> 2024-03-16 17:05:46 │ └ <function TCPConnector._create_connection at 0x7fc0ae17b240> 2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection 2024-03-16 17:05:46 _, proto = await self._create_direct_connection(req, traces, timeout) 2024-03-16 17:05:46 │ │ │ │ └ ClientTimeout(total=600, connect=None, sock_read=None, sock_connect=None) 2024-03-16 17:05:46 │ │ │ └ [] 2024-03-16 17:05:46 │ │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7fc0ac293150> 2024-03-16 17:05:46 │ └ <function TCPConnector._create_direct_connection at 0x7fc0ae17b920> 2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection 2024-03-16 17:05:46 raise last_exc 2024-03-16 17:05:46 └ ClientConnectorError(ConnectionKey(host='api.openai.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy... 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection 2024-03-16 17:05:46 transp, proto = await self._wrap_create_connection( 2024-03-16 17:05:46 │ └ <function TCPConnector._wrap_create_connection at 0x7fc0ae17b4c0> 2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection 2024-03-16 17:05:46 raise client_error(req.connection_key, exc) from exc 2024-03-16 17:05:46 │ │ └ <property object at 0x7fc0ae158590> 2024-03-16 17:05:46 │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7fc0ac293150> 2024-03-16 17:05:46 └ <class 'aiohttp.client_exceptions.ClientConnectorError'> 2024-03-16 17:05:46 2024-03-16 17:05:46 aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.openai.com:443 ssl:default [None] 2024-03-16 17:05:46 2024-03-16 17:05:46 2024-03-16 17:05:46 The above exception was the direct cause of the following exception: 2024-03-16 17:05:46 2024-03-16 17:05:46 2024-03-16 17:05:46 Traceback (most recent call last): 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/helpers.py", line 32, in openai_error_handler 2024-03-16 17:05:46 return await func(*args, **kwargs) 2024-03-16 17:05:46 │ │ └ {'callbacks': None} 2024-03-16 17:05:46 │ └ ({'goal': 'Plan a detailed trip to Hawaii', 'language': '简体中文'},) 2024-03-16 17:05:46 └ <bound method Chain.arun of LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessageP... 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/_api/deprecation.py", line 154, in awarning_emitting_wrapper 2024-03-16 17:05:46 return await wrapped(*args, **kwargs) 2024-03-16 17:05:46 │ │ └ {'callbacks': None} 2024-03-16 17:05:46 │ └ (LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=Prompt... 2024-03-16 17:05:46 └ <function Chain.arun at 0x7fc0ade8a340> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 620, in arun 2024-03-16 17:05:46 else: 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/_api/deprecation.py", line 154, in awarning_emitting_wrapper 2024-03-16 17:05:46 return await wrapped(*args, **kwargs) 2024-03-16 17:05:46 │ │ └ {'callbacks': None, 'tags': None, 'metadata': None} 2024-03-16 17:05:46 │ └ (LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=Prompt... 2024-03-16 17:05:46 └ <function Chain.acall at 0x7fc0ade89da0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 428, in acall 2024-03-16 17:05:46 @Property 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 212, in ainvoke 2024-03-16 17:05:46 run_manager: Optional[AsyncCallbackManagerForChainRun] = None, 2024-03-16 17:05:46 │ │ └ <class 'langchain_core.callbacks.manager.AsyncCallbackManagerForChainRun'> 2024-03-16 17:05:46 │ └ typing.Optional 2024-03-16 17:05:46 └ <langchain_core.callbacks.manager.AsyncCallbackManagerForChainRun object at 0x7fc0ac86ead0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 203, in ainvoke 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/llm.py", line 275, in _acall 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/llm.py", line 142, in agenerate 2024-03-16 17:05:46 run_manager.on_text(_text, end="\n", verbose=self.verbose) 2024-03-16 17:05:46 │ │ │ └ False 2024-03-16 17:05:46 │ │ └ LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=PromptT... 2024-03-16 17:05:46 │ └ <function AsyncRunManager.on_text at 0x7fc0ae6b91c0> 2024-03-16 17:05:46 └ <langchain_core.callbacks.manager.AsyncCallbackManagerForChainRun object at 0x7fc0ac86ead0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 581, in agenerate_prompt 2024-03-16 17:05:46 return await self.agenerate( 2024-03-16 17:05:46 │ └ <function BaseChatModel.agenerate at 0x7fc0ae5bc180> 2024-03-16 17:05:46 └ WrappedChatOpenAI(client=<class 'openai.api_resources.chat_completion.ChatCompletion'>, model_name='gpt-3.5-turbo', temperatu... 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 541, in agenerate 2024-03-16 17:05:46 raise exceptions[0] 2024-03-16 17:05:46 └ [APIConnectionError(message='Error communicating with OpenAI', http_status=None, request_id=None)] 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 645, in _agenerate_with_cache 2024-03-16 17:05:46 result = await self._agenerate( 2024-03-16 17:05:46 │ └ <function ChatOpenAI._agenerate at 0x7fc0ae45f1a0> 2024-03-16 17:05:46 └ WrappedChatOpenAI(client=<class 'openai.api_resources.chat_completion.ChatCompletion'>, model_name='gpt-3.5-turbo', temperatu... 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_community/chat_models/openai.py", line 534, in _agenerate 2024-03-16 17:05:46 response = await acompletion_with_retry( 2024-03-16 17:05:46 └ <function acompletion_with_retry at 0x7fc0ae45e660> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_community/chat_models/openai.py", line 114, in acompletion_with_retry 2024-03-16 17:05:46 return await _completion_with_retry(**kwargs) 2024-03-16 17:05:46 │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language.... 2024-03-16 17:05:46 └ <function acompletion_with_retry.._completion_with_retry at 0x7fc0ac295f80> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped 2024-03-16 17:05:46 return await fn(*args, **kwargs) 2024-03-16 17:05:46 │ │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language.... 2024-03-16 17:05:46 │ └ () 2024-03-16 17:05:46 └ <function acompletion_with_retry.._completion_with_retry at 0x7fc0ac295d00> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in call 2024-03-16 17:05:46 do = self.iter(retry_state=retry_state) 2024-03-16 17:05:46 │ │ └ <RetryCallState 140465504758032: attempt #5; slept for 20.0; last result: failed (APIConnectionError Error communicating with... 2024-03-16 17:05:46 │ └ <function BaseRetrying.iter at 0x7fc0ae76ee80> 2024-03-16 17:05:46 └ <AsyncRetrying object at 0x7fc0ac838650 (stop=<tenacity.stop.stop_after_attempt object at 0x7fc0ac839450>, wait=<tenacity.wai... 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 325, in iter 2024-03-16 17:05:46 raise retry_exc.reraise() 2024-03-16 17:05:46 │ └ <function RetryError.reraise at 0x7fc0ae76e700> 2024-03-16 17:05:46 └ RetryError(<Future at 0x7fc0ac8036d0 state=finished raised APIConnectionError>) 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 158, in reraise 2024-03-16 17:05:46 raise self.last_attempt.result() 2024-03-16 17:05:46 │ │ └ <function Future.result at 0x7fc0c6521d00> 2024-03-16 17:05:46 │ └ <Future at 0x7fc0ac8036d0 state=finished raised APIConnectionError> 2024-03-16 17:05:46 └ RetryError(<Future at 0x7fc0ac8036d0 state=finished raised APIConnectionError>) 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result 2024-03-16 17:05:46 return self.__get_result() 2024-03-16 17:05:46 └ None 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result 2024-03-16 17:05:46 raise self._exception 2024-03-16 17:05:46 └ None 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in call 2024-03-16 17:05:46 result = await fn(*args, **kwargs) 2024-03-16 17:05:46 │ │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language.... 2024-03-16 17:05:46 │ └ () 2024-03-16 17:05:46 └ <function acompletion_with_retry.._completion_with_retry at 0x7fc0ac83f240> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_community/chat_models/openai.py", line 112, in _completion_with_retry 2024-03-16 17:05:46 return await llm.client.acreate(**kwargs) 2024-03-16 17:05:46 │ │ │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language.... 2024-03-16 17:05:46 │ │ └ <classmethod(<function ChatCompletion.acreate at 0x7fc0adaa0d60>)> 2024-03-16 17:05:46 │ └ <class 'openai.api_resources.chat_completion.ChatCompletion'> 2024-03-16 17:05:46 └ WrappedChatOpenAI(client=<class 'openai.api_resources.chat_completion.ChatCompletion'>, model_name='gpt-3.5-turbo', temperatu... 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_resources/chat_completion.py", line 45, in acreate 2024-03-16 17:05:46 return await super().acreate(*args, **kwargs) 2024-03-16 17:05:46 │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language.... 2024-03-16 17:05:46 └ () 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 219, in acreate 2024-03-16 17:05:46 response, _, api_key = await requestor.arequest( 2024-03-16 17:05:46 │ └ <function APIRequestor.arequest at 0x7fc0ade65da0> 2024-03-16 17:05:46 └ <openai.api_requestor.APIRequestor object at 0x7fc0ac2bb050> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 374, in arequest 2024-03-16 17:05:46 result = await self.arequest_raw( 2024-03-16 17:05:46 │ └ <function APIRequestor.arequest_raw at 0x7fc0ade66160> 2024-03-16 17:05:46 └ <openai.api_requestor.APIRequestor object at 0x7fc0ac2bb050> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 695, in arequest_raw 2024-03-16 17:05:46 raise error.APIConnectionError("Error communicating with OpenAI") from e 2024-03-16 17:05:46 │ └ <class 'openai.error.APIConnectionError'> 2024-03-16 17:05:46 └ <module 'openai.error' from '/usr/local/lib/python3.11/site-packages/openai/error.py'> 2024-03-16 17:05:46 2024-03-16 17:05:46 openai.error.APIConnectionError: Error communicating with OpenAI 2024-03-16 17:05:46 2024-03-16 17:05:46 2024-03-16 17:05:46 During handling of the above exception, another exception occurred: 2024-03-16 17:05:46 2024-03-16 17:05:46 2024-03-16 17:05:46 Traceback (most recent call last): 2024-03-16 17:05:46 2024-03-16 17:05:46 File "", line 1, in 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/spawn.py", line 120, in spawn_main 2024-03-16 17:05:46 exitcode = _main(fd, parent_sentinel) 2024-03-16 17:05:46 │ │ └ 4 2024-03-16 17:05:46 │ └ 7 2024-03-16 17:05:46 └ <function _main at 0x7fc0c673db20> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/spawn.py", line 133, in _main 2024-03-16 17:05:46 return self._bootstrap(parent_sentinel) 2024-03-16 17:05:46 │ │ └ 4 2024-03-16 17:05:46 │ └ <function BaseProcess._bootstrap at 0x7fc0c6817240> 2024-03-16 17:05:46 └ 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap 2024-03-16 17:05:46 self.run() 2024-03-16 17:05:46 │ └ <function BaseProcess.run at 0x7fc0c68167a0> 2024-03-16 17:05:46 └ 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/process.py", line 108, in run 2024-03-16 17:05:46 self._target(*self._args, **self._kwargs) 2024-03-16 17:05:46 │ │ │ │ │ └ {'config': <uvicorn.config.Config object at 0x7fc0c673bd90>, 'target': <bound method Server.run of <uvicorn.server.Server obj... 2024-03-16 17:05:46 │ │ │ │ └ 2024-03-16 17:05:46 │ │ │ └ () 2024-03-16 17:05:46 │ │ └ 2024-03-16 17:05:46 │ └ <function subprocess_started at 0x7fc0c5ce31a0> 2024-03-16 17:05:46 └ 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started 2024-03-16 17:05:46 target(sockets=sockets) 2024-03-16 17:05:46 │ └ [<socket.socket fd=3, family=2, type=1, proto=0, laddr=('0.0.0.0', 8000)>] 2024-03-16 17:05:46 └ <bound method Server.run of <uvicorn.server.Server object at 0x7fc0c59f5950>> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run 2024-03-16 17:05:46 return asyncio.run(self.serve(sockets=sockets)) 2024-03-16 17:05:46 │ │ │ │ └ [<socket.socket fd=3, family=2, type=1, proto=0, laddr=('0.0.0.0', 8000)>] 2024-03-16 17:05:46 │ │ │ └ <function Server.serve at 0x7fc0c5ce2200> 2024-03-16 17:05:46 │ │ └ <uvicorn.server.Server object at 0x7fc0c59f5950> 2024-03-16 17:05:46 │ └ <function run at 0x7fc0c60a0fe0> 2024-03-16 17:05:46 └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run 2024-03-16 17:05:46 return runner.run(main) 2024-03-16 17:05:46 │ │ └ <coroutine object Server.serve at 0x7fc0c59ef890> 2024-03-16 17:05:46 │ └ <function Runner.run at 0x7fc0c5edc860> 2024-03-16 17:05:46 └ <asyncio.runners.Runner object at 0x7fc0c59f5310> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run 2024-03-16 17:05:46 return self._loop.run_until_complete(task) 2024-03-16 17:05:46 │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:81> wai... 2024-03-16 17:05:46 │ │ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects> 2024-03-16 17:05:46 │ └ <uvloop.Loop running=True closed=False debug=False> 2024-03-16 17:05:46 └ <asyncio.runners.Runner object at 0x7fc0c59f5310> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi 2024-03-16 17:05:46 result = await app( # type: ignore[func-returns-value] 2024-03-16 17:05:46 └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7fc0ad222210> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call 2024-03-16 17:05:46 return await self.app(scope, receive, send) 2024-03-16 17:05:46 │ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac873b... 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <fastapi.applications.FastAPI object at 0x7fc0adf1e3d0> 2024-03-16 17:05:46 └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7fc0ad222210> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 284, in call 2024-03-16 17:05:46 await super().call(scope, receive, send) 2024-03-16 17:05:46 │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac873b... 2024-03-16 17:05:46 │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in call 2024-03-16 17:05:46 await self.middleware_stack(scope, receive, send) 2024-03-16 17:05:46 │ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac873b... 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7fc0acaf78d0> 2024-03-16 17:05:46 └ <fastapi.applications.FastAPI object at 0x7fc0adf1e3d0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call 2024-03-16 17:05:46 await self.app(scope, receive, _send) 2024-03-16 17:05:46 │ │ │ │ └ <function ServerErrorMiddleware.call.._send at 0x7fc0ac296b60> 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610> 2024-03-16 17:05:46 └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7fc0acaf78d0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in call 2024-03-16 17:05:46 await self.simple_response(scope, receive, send, request_headers=headers) 2024-03-16 17:05:46 │ │ │ │ │ └ Headers({'host': 'localhost:8000', 'connection': 'keep-alive', 'content-length': '218', 'sec-ch-ua': '"Chromium";v="122", "No... 2024-03-16 17:05:46 │ │ │ │ └ <function ServerErrorMiddleware.call.._send at 0x7fc0ac296b60> 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <function CORSMiddleware.simple_response at 0x7fc0c49c4d60> 2024-03-16 17:05:46 └ <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response 2024-03-16 17:05:46 await self.app(scope, receive, send) 2024-03-16 17:05:46 │ │ │ │ └ functools.partial(<bound method CORSMiddleware.send of <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610>>, ... 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fc0ace954d0> 2024-03-16 17:05:46 └ <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610> 2024-03-16 17:05:46 > File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call 2024-03-16 17:05:46 await self.app(scope, receive, sender) 2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0> 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x7fc0ad222d90> 2024-03-16 17:05:46 └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fc0ace954d0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call 2024-03-16 17:05:46 raise e 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call 2024-03-16 17:05:46 await self.app(scope, receive, send) 2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0> 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <fastapi.routing.APIRouter object at 0x7fc0ade171d0> 2024-03-16 17:05:46 └ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x7fc0ad222d90> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in call 2024-03-16 17:05:46 await route.handle(scope, receive, send) 2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0> 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <function Route.handle at 0x7fc0c4cbf9c0> 2024-03-16 17:05:46 └ APIRoute(path='/api/agent/start', name='start_tasks', methods=['POST']) 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle 2024-03-16 17:05:46 await self.app(scope, receive, send) 2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0> 2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8... 2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c... 2024-03-16 17:05:46 │ └ <function request_response..app at 0x7fc0acb60b80> 2024-03-16 17:05:46 └ APIRoute(path='/api/agent/start', name='start_tasks', methods=['POST']) 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app 2024-03-16 17:05:46 response = await func(request) 2024-03-16 17:05:46 │ └ <starlette.requests.Request object at 0x7fc0ac870110> 2024-03-16 17:05:46 └ <function get_request_handler..app at 0x7fc0acb60ae0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 241, in app 2024-03-16 17:05:46 raw_response = await run_endpoint_function( 2024-03-16 17:05:46 └ <function run_endpoint_function at 0x7fc0c4cbdda0> 2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 167, in run_endpoint_function 2024-03-16 17:05:46 return await dependant.call(**values) 2024-03-16 17:05:46 │ │ └ {'req_body': AgentRun(goal='Plan a detailed trip to Hawaii', model_settings=ModelSettings(model='gpt-3.5-turbo', custom_api_k... 2024-03-16 17:05:46 │ └ <function start_tasks at 0x7fc0ad1ff4c0> 2024-03-16 17:05:46 └ <fastapi.dependencies.models.Dependant object at 0x7fc0acb64110> 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/views.py", line 41, in start_tasks 2024-03-16 17:05:46 new_tasks = await agent_service.start_goal_agent(goal=req_body.goal) 2024-03-16 17:05:46 │ │ │ └ 'Plan a detailed trip to Hawaii' 2024-03-16 17:05:46 │ │ └ AgentRun(goal='Plan a detailed trip to Hawaii', model_settings=ModelSettings(model='gpt-3.5-turbo', custom_api_key='sk-PvVx5Y... 2024-03-16 17:05:46 │ └ <function OpenAIAgentService.start_goal_agent at 0x7fc0adf5fba0> 2024-03-16 17:05:46 └ <reworkd_platform.web.api.agent.agent_service.open_ai_agent_service.OpenAIAgentService object at 0x7fc0ac81cb50> 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/agent_service/open_ai_agent_service.py", line 73, in start_goal_agent 2024-03-16 17:05:46 completion = await call_model_with_handling( 2024-03-16 17:05:46 └ <function call_model_with_handling at 0x7fc0ade06d40> 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/helpers.py", line 76, in call_model_with_handling 2024-03-16 17:05:46 return await openai_error_handler(chain.arun, args, settings=settings, **kwargs) 2024-03-16 17:05:46 │ │ │ │ │ └ {'callbacks': None} 2024-03-16 17:05:46 │ │ │ │ └ ModelSettings(model='gpt-3.5-turbo', custom_api_key='sk-PvVx5YPcY75eQnLP1u1XT3BlbkFJ0AiBg-------', temperature=0.98, ... 2024-03-16 17:05:46 │ │ │ └ {'goal': 'Plan a detailed trip to Hawaii', 'language': '简体中文'} 2024-03-16 17:05:46 │ │ └ <function Chain.arun at 0x7fc0ade8a480> 2024-03-16 17:05:46 │ └ LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=PromptT... 2024-03-16 17:05:46 └ <function openai_error_handler at 0x7fc0ade042c0> 2024-03-16 17:05:46 2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/helpers.py", line 63, in openai_error_handler 2024-03-16 17:05:46 raise OpenAIError( 2024-03-16 17:05:46 └ <class 'reworkd_platform.web.api.errors.OpenAIError'> 2024-03-16 17:05:46 2024-03-16 17:05:46 reworkd_platform.web.api.errors.OpenAIError: Error communicating with OpenAI 2024-03-16 17:05:46 2024-03-16 09:05:46.129 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "POST /api/agent/start HTTP/1.1" 409
Package Version Editable project location
aiohttp 3.8.6 aiokafka 0.8.1 aiomysql 0.1.1 aiosignal 1.3.1 anyio 3.7.1 astor 0.8.1 async-timeout 4.0.3 attrs 23.1.0 autoflake 2.2.1 autopep8 2.0.4 aws-secretsmanager-caching 1.1.1.5 bandit 1.7.5 beautifulsoup4 4.12.2 black 23.10.1 boto3 1.28.75 botocore 1.31.75 build 0.10.0 CacheControl 0.12.14 certifi 2023.7.22 cffi 1.16.0 cfgv 3.4.0 charset-normalizer 3.3.2 cleo 2.1.0 click 8.1.7 coverage 7.3.2 crashtest 0.4.1 cryptography 41.0.5 darglint 1.8.1 dataclasses-json 0.5.9 distlib 0.3.7 dnspython 2.4.2 docutils 0.20.1 dotmap 1.3.30 dulwich 0.21.7 eradicate 2.3.0 fastapi 0.98.0 filelock 3.13.1 flake8 6.0.0 flake8-bandit 4.1.1 flake8-broken-line 1.0.0 flake8-bugbear 23.9.16 flake8-commas 2.1.0 flake8-comprehensions 3.14.0 flake8-debugger 4.1.2 flake8-docstrings 1.7.0 flake8-eradicate 1.5.0 flake8-isort 6.1.0 flake8-quotes 3.3.2 flake8-rst-docstrings 0.3.0 flake8-string-format 0.3.0 frozenlist 1.4.0 gitdb 4.0.11 GitPython 3.1.40 greenlet 3.0.1 grpcio 1.59.2 h11 0.14.0 html5lib 1.1 httpcore 0.18.0 httptools 0.6.1 httpx 0.25.0 identify 2.5.31 idna 3.4 importlib_metadata 7.0.2 iniconfig 2.0.0 installer 0.7.0 isort 5.12.0 jaraco.classes 3.3.1 jeepney 0.8.0 jmespath 1.0.1 jsonpatch 1.33 jsonpointer 2.4 jsonschema 4.21.1 jsonschema-specifications 2023.12.1 kafka-python 2.0.2 keyring 23.13.1 lanarky 0.7.16 langchain 0.0.295 langchain-community 0.0.28 langchain-core 0.1.32 langchain-text-splitters 0.0.1 langsmith 0.0.55 lockfile 0.12.2 loguru 0.7.2 markdown-it-py 3.0.0 marshmallow 3.20.1 marshmallow-enum 1.5.1 mccabe 0.7.0 mdurl 0.1.2 more-itertools 10.2.0 msgpack 1.0.8 multidict 6.0.4 mypy 1.6.1 mypy-extensions 1.0.0 mysqlclient 2.2.4 nodeenv 1.8.0 numexpr 2.8.7 numpy 1.25.2 openai 0.28.1 orjson 3.9.15 packaging 23.2 pathspec 0.11.2 pbr 5.11.1 pep8-naming 0.13.3 pexpect 4.9.0 pinecone-client 2.2.4 pip 23.1.2 pkginfo 1.10.0 platformdirs 3.11.0 pluggy 1.3.0 poetry 1.4.2 poetry-core 1.5.2 poetry-plugin-export 1.3.1 pre-commit 3.5.0 ptyprocess 0.7.0 pycodestyle 2.10.0 pycparser 2.21 pydantic 1.10.13 pydocstyle 6.3.0 pyflakes 3.0.1 Pygments 2.16.1 PyMySQL 1.1.0 pyproject_hooks 1.0.0 pytest 7.4.3 pytest-asyncio 0.21.1 pytest-cov 4.1.0 pytest-env 0.8.2 pytest-mock 3.12.0 python-dateutil 2.8.2 python-dotenv 1.0.0 python-multipart 0.0.6 PyYAML 6.0.1 rapidfuzz 3.6.2 referencing 0.33.0 regex 2023.10.3 replicate 0.8.4 requests 2.31.0 requests-toolbelt 0.10.1 restructuredtext_lint 1.4.0 reworkd-platform 0.1.0 /app/src rich 13.6.0 rpds-py 0.18.0 s3transfer 0.7.0 SecretStorage 3.3.3 sentry-sdk 1.33.1 setuptools 68.2.2 shellingham 1.5.4 six 1.16.0 smmap 5.0.1 sniffio 1.3.0 snowballstemmer 2.2.0 soupsieve 2.5 SQLAlchemy 2.0.22 starlette 0.27.0 stevedore 5.1.0 stripe 5.5.0 tenacity 8.2.3 tiktoken 0.5.1 tomlkit 0.12.4 tqdm 4.66.1 trove-classifiers 2024.3.3 types-pytz 2023.3.1.1 types-requests 2.31.0.10 typing_extensions 4.8.0 typing-inspect 0.9.0 ujson 5.8.0 urllib3 2.0.7 uvicorn 0.22.0 uvloop 0.19.0 virtualenv 20.24.6 watchfiles 0.21.0 webencodings 0.5.1 websockets 12.0 wemake-python-styleguide 0.18.0 wheel 0.40.0 wikipedia 1.4.0 yarl 1.9.2 zipp 3.18.1
run the setup.bat and the container is running. set a goal at localhost:3000
No response
The text was updated successfully, but these errors were encountered:
same for me There was an issue parsing the response from the AI model.
Sorry, something went wrong.
No branches or pull requests
Please check that this issue hasn't been reported before.
Expected Behavior
I set a goal for agent, and agent connect to openai.
Current behaviour
Frontend
2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.Session.id, reworkd_platform.Session.sessionToken, reworkd_platform.Session.userId, reworkd_platform.Session.expires FROM reworkd_platform.Session WHERE reworkd_platform.Session.userId = ? ORDER BY reworkd_platform.Session.expires DESC LIMIT ? OFFSET ?
2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.Session.id, reworkd_platform.Session.sessionToken, reworkd_platform.Session.userId, reworkd_platform.Session.expires FROM reworkd_platform.Session WHERE reworkd_platform.Session.userId = ? ORDER BY reworkd_platform.Session.expires DESC LIMIT ? OFFSET ?
2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.organization_user.id, reworkd_platform.organization_user.user_id, reworkd_platform.organization_user.organization_id, reworkd_platform.organization_user.role, reworkd_platform.organization_user.create_date, reworkd_platform.organization_user.update_date, reworkd_platform.organization_user.delete_date FROM reworkd_platform.organization_user WHERE reworkd_platform.organization_user.user_id = ?
2024-03-16 17:03:36 prisma:query SELECT reworkd_platform.Agent.id, reworkd_platform.Agent.userId, reworkd_platform.Agent.name, reworkd_platform.Agent.goal, reworkd_platform.Agent.deleteDate, reworkd_platform.Agent.createDate FROM reworkd_platform.Agent WHERE (reworkd_platform.Agent.userId = ? AND reworkd_platform.Agent.deleteDate IS NULL) ORDER BY reworkd_platform.Agent.createDate DESC LIMIT ? OFFSET ?
Platform
2024-03-16 17:03:37 2024-03-16 09:03:37.229 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "OPTIONS /api/agent/tools HTTP/1.1" 200
2024-03-16 17:03:37 2024-03-16 09:03:37.234 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "GET /api/agent/tools HTTP/1.1" 200
2024-03-16 17:03:37 2024-03-16 09:03:37.260 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "OPTIONS /api/auth/sid/info HTTP/1.1" 200
2024-03-16 17:03:37 2024-03-16 09:03:37.293 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "GET /api/auth/sid/info HTTP/1.1" 200
2024-03-16 17:03:40 2024-03-16 09:03:40.615 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "OPTIONS /api/agent/start HTTP/1.1" 200
2024-03-16 17:04:01 2024-03-16 09:04:01.893 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
2024-03-16 17:04:26 2024-03-16 09:04:26.939 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
2024-03-16 17:04:51 2024-03-16 09:04:51.981 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
2024-03-16 17:05:17 2024-03-16 09:05:17.041 | WARNING | logging:callHandlers:1706 - Retrying langchain_community.chat_models.openai.acompletion_with_retry.._completion_with_retry in 8.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
2024-03-16 17:05:46 2024-03-16 09:05:46.111 | ERROR | reworkd_platform.web.api.error_handling:platformatic_exception_handler:13 - Error communicating with OpenAI
2024-03-16 17:05:46 Traceback (most recent call last):
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
2024-03-16 17:05:46 return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
2024-03-16 17:05:46 │ │ │ │ └ {'ssl': <ssl.SSLContext object at 0x7fc0ac2f4200>, 'family': <AddressFamily.AF_INET: 2>, 'proto': 6, 'flags': <AddressInfo.AI...
2024-03-16 17:05:46 │ │ │ └ (functools.partial(<class 'aiohttp.client_proto.ResponseHandler'>, loop=<uvloop.Loop running=True closed=False debug=False>),...
2024-03-16 17:05:46 │ │ └ <method 'create_connection' of 'uvloop.loop.Loop' objects>
2024-03-16 17:05:46 │ └ <uvloop.Loop running=True closed=False debug=False>
2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410>
2024-03-16 17:05:46 File "uvloop/loop.pyx", line 2084, in create_connection
2024-03-16 17:05:46 raise
2024-03-16 17:05:46 File "uvloop/loop.pyx", line 2079, in uvloop.loop.Loop.create_connection
2024-03-16 17:05:46 await ssl_waiter
2024-03-16 17:05:46 File "uvloop/sslproto.pyx", line 517, in uvloop.loop.SSLProtocol._on_handshake_complete
2024-03-16 17:05:46 raise handshake_exc
2024-03-16 17:05:46
2024-03-16 17:05:46 ConnectionResetError
2024-03-16 17:05:46
2024-03-16 17:05:46
2024-03-16 17:05:46 The above exception was the direct cause of the following exception:
2024-03-16 17:05:46
2024-03-16 17:05:46
2024-03-16 17:05:46 Traceback (most recent call last):
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 678, in arequest_raw
2024-03-16 17:05:46 result = await session.request(**request_kwargs)
2024-03-16 17:05:46 │ │ └ {'method': 'post', 'url': 'https://api.openai.com/v1/chat/completions', 'headers': {'X-OpenAI-Client-User-Agent': '{"bindings...
2024-03-16 17:05:46 │ └ <function ClientSession.request at 0x7fc0ae1c71a0>
2024-03-16 17:05:46 └ <aiohttp.client.ClientSession object at 0x7fc0ac2b91d0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 562, in _request
2024-03-16 17:05:46 conn = await self._connector.connect(
2024-03-16 17:05:46 │ └ None
2024-03-16 17:05:46 └ <aiohttp.client.ClientSession object at 0x7fc0ac2b91d0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
2024-03-16 17:05:46 proto = await self._create_connection(req, traces, timeout)
2024-03-16 17:05:46 │ │ │ │ └ ClientTimeout(total=600, connect=None, sock_read=None, sock_connect=None)
2024-03-16 17:05:46 │ │ │ └ []
2024-03-16 17:05:46 │ │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7fc0ac293150>
2024-03-16 17:05:46 │ └ <function TCPConnector._create_connection at 0x7fc0ae17b240>
2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
2024-03-16 17:05:46 _, proto = await self._create_direct_connection(req, traces, timeout)
2024-03-16 17:05:46 │ │ │ │ └ ClientTimeout(total=600, connect=None, sock_read=None, sock_connect=None)
2024-03-16 17:05:46 │ │ │ └ []
2024-03-16 17:05:46 │ │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7fc0ac293150>
2024-03-16 17:05:46 │ └ <function TCPConnector._create_direct_connection at 0x7fc0ae17b920>
2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1209, in _create_direct_connection
2024-03-16 17:05:46 raise last_exc
2024-03-16 17:05:46 └ ClientConnectorError(ConnectionKey(host='api.openai.com', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy...
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1178, in _create_direct_connection
2024-03-16 17:05:46 transp, proto = await self._wrap_create_connection(
2024-03-16 17:05:46 │ └ <function TCPConnector._wrap_create_connection at 0x7fc0ae17b4c0>
2024-03-16 17:05:46 └ <aiohttp.connector.TCPConnector object at 0x7fc0ac2b9410>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection
2024-03-16 17:05:46 raise client_error(req.connection_key, exc) from exc
2024-03-16 17:05:46 │ │ └ <property object at 0x7fc0ae158590>
2024-03-16 17:05:46 │ └ <aiohttp.client_reqrep.ClientRequest object at 0x7fc0ac293150>
2024-03-16 17:05:46 └ <class 'aiohttp.client_exceptions.ClientConnectorError'>
2024-03-16 17:05:46
2024-03-16 17:05:46 aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.openai.com:443 ssl:default [None]
2024-03-16 17:05:46
2024-03-16 17:05:46
2024-03-16 17:05:46 The above exception was the direct cause of the following exception:
2024-03-16 17:05:46
2024-03-16 17:05:46
2024-03-16 17:05:46 Traceback (most recent call last):
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/helpers.py", line 32, in openai_error_handler
2024-03-16 17:05:46 return await func(*args, **kwargs)
2024-03-16 17:05:46 │ │ └ {'callbacks': None}
2024-03-16 17:05:46 │ └ ({'goal': 'Plan a detailed trip to Hawaii', 'language': '简体中文'},)
2024-03-16 17:05:46 └ <bound method Chain.arun of LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessageP...
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/_api/deprecation.py", line 154, in awarning_emitting_wrapper
2024-03-16 17:05:46 return await wrapped(*args, **kwargs)
2024-03-16 17:05:46 │ │ └ {'callbacks': None}
2024-03-16 17:05:46 │ └ (LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=Prompt...
2024-03-16 17:05:46 └ <function Chain.arun at 0x7fc0ade8a340>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 620, in arun
2024-03-16 17:05:46 else:
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/_api/deprecation.py", line 154, in awarning_emitting_wrapper
2024-03-16 17:05:46 return await wrapped(*args, **kwargs)
2024-03-16 17:05:46 │ │ └ {'callbacks': None, 'tags': None, 'metadata': None}
2024-03-16 17:05:46 │ └ (LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=Prompt...
2024-03-16 17:05:46 └ <function Chain.acall at 0x7fc0ade89da0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 428, in acall
2024-03-16 17:05:46 @Property
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 212, in ainvoke
2024-03-16 17:05:46 run_manager: Optional[AsyncCallbackManagerForChainRun] = None,
2024-03-16 17:05:46 │ │ └ <class 'langchain_core.callbacks.manager.AsyncCallbackManagerForChainRun'>
2024-03-16 17:05:46 │ └ typing.Optional
2024-03-16 17:05:46 └ <langchain_core.callbacks.manager.AsyncCallbackManagerForChainRun object at 0x7fc0ac86ead0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 203, in ainvoke
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/llm.py", line 275, in _acall
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain/chains/llm.py", line 142, in agenerate
2024-03-16 17:05:46 run_manager.on_text(_text, end="\n", verbose=self.verbose)
2024-03-16 17:05:46 │ │ │ └ False
2024-03-16 17:05:46 │ │ └ LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=PromptT...
2024-03-16 17:05:46 │ └ <function AsyncRunManager.on_text at 0x7fc0ae6b91c0>
2024-03-16 17:05:46 └ <langchain_core.callbacks.manager.AsyncCallbackManagerForChainRun object at 0x7fc0ac86ead0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 581, in agenerate_prompt
2024-03-16 17:05:46 return await self.agenerate(
2024-03-16 17:05:46 │ └ <function BaseChatModel.agenerate at 0x7fc0ae5bc180>
2024-03-16 17:05:46 └ WrappedChatOpenAI(client=<class 'openai.api_resources.chat_completion.ChatCompletion'>, model_name='gpt-3.5-turbo', temperatu...
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 541, in agenerate
2024-03-16 17:05:46 raise exceptions[0]
2024-03-16 17:05:46 └ [APIConnectionError(message='Error communicating with OpenAI', http_status=None, request_id=None)]
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 645, in _agenerate_with_cache
2024-03-16 17:05:46 result = await self._agenerate(
2024-03-16 17:05:46 │ └ <function ChatOpenAI._agenerate at 0x7fc0ae45f1a0>
2024-03-16 17:05:46 └ WrappedChatOpenAI(client=<class 'openai.api_resources.chat_completion.ChatCompletion'>, model_name='gpt-3.5-turbo', temperatu...
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_community/chat_models/openai.py", line 534, in _agenerate
2024-03-16 17:05:46 response = await acompletion_with_retry(
2024-03-16 17:05:46 └ <function acompletion_with_retry at 0x7fc0ae45e660>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_community/chat_models/openai.py", line 114, in acompletion_with_retry
2024-03-16 17:05:46 return await _completion_with_retry(**kwargs)
2024-03-16 17:05:46 │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language....
2024-03-16 17:05:46 └ <function acompletion_with_retry.._completion_with_retry at 0x7fc0ac295f80>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
2024-03-16 17:05:46 return await fn(*args, **kwargs)
2024-03-16 17:05:46 │ │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language....
2024-03-16 17:05:46 │ └ ()
2024-03-16 17:05:46 └ <function acompletion_with_retry.._completion_with_retry at 0x7fc0ac295d00>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in call
2024-03-16 17:05:46 do = self.iter(retry_state=retry_state)
2024-03-16 17:05:46 │ │ └ <RetryCallState 140465504758032: attempt #5; slept for 20.0; last result: failed (APIConnectionError Error communicating with...
2024-03-16 17:05:46 │ └ <function BaseRetrying.iter at 0x7fc0ae76ee80>
2024-03-16 17:05:46 └ <AsyncRetrying object at 0x7fc0ac838650 (stop=<tenacity.stop.stop_after_attempt object at 0x7fc0ac839450>, wait=<tenacity.wai...
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 325, in iter
2024-03-16 17:05:46 raise retry_exc.reraise()
2024-03-16 17:05:46 │ └ <function RetryError.reraise at 0x7fc0ae76e700>
2024-03-16 17:05:46 └ RetryError(<Future at 0x7fc0ac8036d0 state=finished raised APIConnectionError>)
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 158, in reraise
2024-03-16 17:05:46 raise self.last_attempt.result()
2024-03-16 17:05:46 │ │ └ <function Future.result at 0x7fc0c6521d00>
2024-03-16 17:05:46 │ └ <Future at 0x7fc0ac8036d0 state=finished raised APIConnectionError>
2024-03-16 17:05:46 └ RetryError(<Future at 0x7fc0ac8036d0 state=finished raised APIConnectionError>)
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
2024-03-16 17:05:46 return self.__get_result()
2024-03-16 17:05:46 └ None
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
2024-03-16 17:05:46 raise self._exception
2024-03-16 17:05:46 └ None
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in call
2024-03-16 17:05:46 result = await fn(*args, **kwargs)
2024-03-16 17:05:46 │ │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language....
2024-03-16 17:05:46 │ └ ()
2024-03-16 17:05:46 └ <function acompletion_with_retry.._completion_with_retry at 0x7fc0ac83f240>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/langchain_community/chat_models/openai.py", line 112, in _completion_with_retry
2024-03-16 17:05:46 return await llm.client.acreate(**kwargs)
2024-03-16 17:05:46 │ │ │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language....
2024-03-16 17:05:46 │ │ └ <classmethod(<function ChatCompletion.acreate at 0x7fc0adaa0d60>)>
2024-03-16 17:05:46 │ └ <class 'openai.api_resources.chat_completion.ChatCompletion'>
2024-03-16 17:05:46 └ WrappedChatOpenAI(client=<class 'openai.api_resources.chat_completion.ChatCompletion'>, model_name='gpt-3.5-turbo', temperatu...
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_resources/chat_completion.py", line 45, in acreate
2024-03-16 17:05:46 return await super().acreate(*args, **kwargs)
2024-03-16 17:05:46 │ └ {'messages': [{'role': 'system', 'content': 'You are a task creation AI called AgentGPT. \nYou answer in the "简体中文" language....
2024-03-16 17:05:46 └ ()
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 219, in acreate
2024-03-16 17:05:46 response, _, api_key = await requestor.arequest(
2024-03-16 17:05:46 │ └ <function APIRequestor.arequest at 0x7fc0ade65da0>
2024-03-16 17:05:46 └ <openai.api_requestor.APIRequestor object at 0x7fc0ac2bb050>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 374, in arequest
2024-03-16 17:05:46 result = await self.arequest_raw(
2024-03-16 17:05:46 │ └ <function APIRequestor.arequest_raw at 0x7fc0ade66160>
2024-03-16 17:05:46 └ <openai.api_requestor.APIRequestor object at 0x7fc0ac2bb050>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 695, in arequest_raw
2024-03-16 17:05:46 raise error.APIConnectionError("Error communicating with OpenAI") from e
2024-03-16 17:05:46 │ └ <class 'openai.error.APIConnectionError'>
2024-03-16 17:05:46 └ <module 'openai.error' from '/usr/local/lib/python3.11/site-packages/openai/error.py'>
2024-03-16 17:05:46
2024-03-16 17:05:46 openai.error.APIConnectionError: Error communicating with OpenAI
2024-03-16 17:05:46
2024-03-16 17:05:46
2024-03-16 17:05:46 During handling of the above exception, another exception occurred:
2024-03-16 17:05:46
2024-03-16 17:05:46
2024-03-16 17:05:46 Traceback (most recent call last):
2024-03-16 17:05:46
2024-03-16 17:05:46 File "", line 1, in
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/spawn.py", line 120, in spawn_main
2024-03-16 17:05:46 exitcode = _main(fd, parent_sentinel)
2024-03-16 17:05:46 │ │ └ 4
2024-03-16 17:05:46 │ └ 7
2024-03-16 17:05:46 └ <function _main at 0x7fc0c673db20>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/spawn.py", line 133, in _main
2024-03-16 17:05:46 return self._bootstrap(parent_sentinel)
2024-03-16 17:05:46 │ │ └ 4
2024-03-16 17:05:46 │ └ <function BaseProcess._bootstrap at 0x7fc0c6817240>
2024-03-16 17:05:46 └
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
2024-03-16 17:05:46 self.run()
2024-03-16 17:05:46 │ └ <function BaseProcess.run at 0x7fc0c68167a0>
2024-03-16 17:05:46 └
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/multiprocessing/process.py", line 108, in run
2024-03-16 17:05:46 self._target(*self._args, **self._kwargs)
2024-03-16 17:05:46 │ │ │ │ │ └ {'config': <uvicorn.config.Config object at 0x7fc0c673bd90>, 'target': <bound method Server.run of <uvicorn.server.Server obj...
2024-03-16 17:05:46 │ │ │ │ └
2024-03-16 17:05:46 │ │ │ └ ()
2024-03-16 17:05:46 │ │ └
2024-03-16 17:05:46 │ └ <function subprocess_started at 0x7fc0c5ce31a0>
2024-03-16 17:05:46 └
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
2024-03-16 17:05:46 target(sockets=sockets)
2024-03-16 17:05:46 │ └ [<socket.socket fd=3, family=2, type=1, proto=0, laddr=('0.0.0.0', 8000)>]
2024-03-16 17:05:46 └ <bound method Server.run of <uvicorn.server.Server object at 0x7fc0c59f5950>>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run
2024-03-16 17:05:46 return asyncio.run(self.serve(sockets=sockets))
2024-03-16 17:05:46 │ │ │ │ └ [<socket.socket fd=3, family=2, type=1, proto=0, laddr=('0.0.0.0', 8000)>]
2024-03-16 17:05:46 │ │ │ └ <function Server.serve at 0x7fc0c5ce2200>
2024-03-16 17:05:46 │ │ └ <uvicorn.server.Server object at 0x7fc0c59f5950>
2024-03-16 17:05:46 │ └ <function run at 0x7fc0c60a0fe0>
2024-03-16 17:05:46 └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
2024-03-16 17:05:46 return runner.run(main)
2024-03-16 17:05:46 │ │ └ <coroutine object Server.serve at 0x7fc0c59ef890>
2024-03-16 17:05:46 │ └ <function Runner.run at 0x7fc0c5edc860>
2024-03-16 17:05:46 └ <asyncio.runners.Runner object at 0x7fc0c59f5310>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
2024-03-16 17:05:46 return self._loop.run_until_complete(task)
2024-03-16 17:05:46 │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:81> wai...
2024-03-16 17:05:46 │ │ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
2024-03-16 17:05:46 │ └ <uvloop.Loop running=True closed=False debug=False>
2024-03-16 17:05:46 └ <asyncio.runners.Runner object at 0x7fc0c59f5310>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
2024-03-16 17:05:46 result = await app( # type: ignore[func-returns-value]
2024-03-16 17:05:46 └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7fc0ad222210>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
2024-03-16 17:05:46 return await self.app(scope, receive, send)
2024-03-16 17:05:46 │ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac873b...
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <fastapi.applications.FastAPI object at 0x7fc0adf1e3d0>
2024-03-16 17:05:46 └ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x7fc0ad222210>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 284, in call
2024-03-16 17:05:46 await super().call(scope, receive, send)
2024-03-16 17:05:46 │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac873b...
2024-03-16 17:05:46 │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in call
2024-03-16 17:05:46 await self.middleware_stack(scope, receive, send)
2024-03-16 17:05:46 │ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac873b...
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7fc0acaf78d0>
2024-03-16 17:05:46 └ <fastapi.applications.FastAPI object at 0x7fc0adf1e3d0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call
2024-03-16 17:05:46 await self.app(scope, receive, _send)
2024-03-16 17:05:46 │ │ │ │ └ <function ServerErrorMiddleware.call.._send at 0x7fc0ac296b60>
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610>
2024-03-16 17:05:46 └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x7fc0acaf78d0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in call
2024-03-16 17:05:46 await self.simple_response(scope, receive, send, request_headers=headers)
2024-03-16 17:05:46 │ │ │ │ │ └ Headers({'host': 'localhost:8000', 'connection': 'keep-alive', 'content-length': '218', 'sec-ch-ua': '"Chromium";v="122", "No...
2024-03-16 17:05:46 │ │ │ │ └ <function ServerErrorMiddleware.call.._send at 0x7fc0ac296b60>
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <function CORSMiddleware.simple_response at 0x7fc0c49c4d60>
2024-03-16 17:05:46 └ <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
2024-03-16 17:05:46 await self.app(scope, receive, send)
2024-03-16 17:05:46 │ │ │ │ └ functools.partial(<bound method CORSMiddleware.send of <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610>>, ...
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fc0ace954d0>
2024-03-16 17:05:46 └ <starlette.middleware.cors.CORSMiddleware object at 0x7fc0adf1e610>
2024-03-16 17:05:46 > File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call
2024-03-16 17:05:46 await self.app(scope, receive, sender)
2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0>
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x7fc0ad222d90>
2024-03-16 17:05:46 └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7fc0ace954d0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
2024-03-16 17:05:46 raise e
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
2024-03-16 17:05:46 await self.app(scope, receive, send)
2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0>
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <fastapi.routing.APIRouter object at 0x7fc0ade171d0>
2024-03-16 17:05:46 └ <fastapi.middleware.asyncexitstack.AsyncExitStackMiddleware object at 0x7fc0ad222d90>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in call
2024-03-16 17:05:46 await route.handle(scope, receive, send)
2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0>
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <function Route.handle at 0x7fc0c4cbf9c0>
2024-03-16 17:05:46 └ APIRoute(path='/api/agent/start', name='start_tasks', methods=['POST'])
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
2024-03-16 17:05:46 await self.app(scope, receive, send)
2024-03-16 17:05:46 │ │ │ │ └ <function ExceptionMiddleware.call..sender at 0x7fc0ac295ee0>
2024-03-16 17:05:46 │ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.httptools_impl.RequestResponseCycle object at 0x7fc0ac8...
2024-03-16 17:05:46 │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.18.0.4', 8000), 'c...
2024-03-16 17:05:46 │ └ <function request_response..app at 0x7fc0acb60b80>
2024-03-16 17:05:46 └ APIRoute(path='/api/agent/start', name='start_tasks', methods=['POST'])
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
2024-03-16 17:05:46 response = await func(request)
2024-03-16 17:05:46 │ └ <starlette.requests.Request object at 0x7fc0ac870110>
2024-03-16 17:05:46 └ <function get_request_handler..app at 0x7fc0acb60ae0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 241, in app
2024-03-16 17:05:46 raw_response = await run_endpoint_function(
2024-03-16 17:05:46 └ <function run_endpoint_function at 0x7fc0c4cbdda0>
2024-03-16 17:05:46 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 167, in run_endpoint_function
2024-03-16 17:05:46 return await dependant.call(**values)
2024-03-16 17:05:46 │ │ └ {'req_body': AgentRun(goal='Plan a detailed trip to Hawaii', model_settings=ModelSettings(model='gpt-3.5-turbo', custom_api_k...
2024-03-16 17:05:46 │ └ <function start_tasks at 0x7fc0ad1ff4c0>
2024-03-16 17:05:46 └ <fastapi.dependencies.models.Dependant object at 0x7fc0acb64110>
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/views.py", line 41, in start_tasks
2024-03-16 17:05:46 new_tasks = await agent_service.start_goal_agent(goal=req_body.goal)
2024-03-16 17:05:46 │ │ │ └ 'Plan a detailed trip to Hawaii'
2024-03-16 17:05:46 │ │ └ AgentRun(goal='Plan a detailed trip to Hawaii', model_settings=ModelSettings(model='gpt-3.5-turbo', custom_api_key='sk-PvVx5Y...
2024-03-16 17:05:46 │ └ <function OpenAIAgentService.start_goal_agent at 0x7fc0adf5fba0>
2024-03-16 17:05:46 └ <reworkd_platform.web.api.agent.agent_service.open_ai_agent_service.OpenAIAgentService object at 0x7fc0ac81cb50>
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/agent_service/open_ai_agent_service.py", line 73, in start_goal_agent
2024-03-16 17:05:46 completion = await call_model_with_handling(
2024-03-16 17:05:46 └ <function call_model_with_handling at 0x7fc0ade06d40>
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/helpers.py", line 76, in call_model_with_handling
2024-03-16 17:05:46 return await openai_error_handler(chain.arun, args, settings=settings, **kwargs)
2024-03-16 17:05:46 │ │ │ │ │ └ {'callbacks': None}
2024-03-16 17:05:46 │ │ │ │ └ ModelSettings(model='gpt-3.5-turbo', custom_api_key='sk-PvVx5YPcY75eQnLP1u1XT3BlbkFJ0AiBg-------', temperature=0.98, ...
2024-03-16 17:05:46 │ │ │ └ {'goal': 'Plan a detailed trip to Hawaii', 'language': '简体中文'}
2024-03-16 17:05:46 │ │ └ <function Chain.arun at 0x7fc0ade8a480>
2024-03-16 17:05:46 │ └ LLMChain(prompt=ChatPromptTemplate(input_variables=['goal', 'language'], messages=[SystemMessagePromptTemplate(prompt=PromptT...
2024-03-16 17:05:46 └ <function openai_error_handler at 0x7fc0ade042c0>
2024-03-16 17:05:46
2024-03-16 17:05:46 File "/app/src/reworkd_platform/web/api/agent/helpers.py", line 63, in openai_error_handler
2024-03-16 17:05:46 raise OpenAIError(
2024-03-16 17:05:46 └ <class 'reworkd_platform.web.api.errors.OpenAIError'>
2024-03-16 17:05:46
2024-03-16 17:05:46 reworkd_platform.web.api.errors.OpenAIError: Error communicating with OpenAI
2024-03-16 17:05:46 2024-03-16 09:05:46.129 | INFO | logging:callHandlers:1706 - 172.18.0.1:50506 - "POST /api/agent/start HTTP/1.1" 409
pip list
Package Version Editable project location
aiohttp 3.8.6
aiokafka 0.8.1
aiomysql 0.1.1
aiosignal 1.3.1
anyio 3.7.1
astor 0.8.1
async-timeout 4.0.3
attrs 23.1.0
autoflake 2.2.1
autopep8 2.0.4
aws-secretsmanager-caching 1.1.1.5
bandit 1.7.5
beautifulsoup4 4.12.2
black 23.10.1
boto3 1.28.75
botocore 1.31.75
build 0.10.0
CacheControl 0.12.14
certifi 2023.7.22
cffi 1.16.0
cfgv 3.4.0
charset-normalizer 3.3.2
cleo 2.1.0
click 8.1.7
coverage 7.3.2
crashtest 0.4.1
cryptography 41.0.5
darglint 1.8.1
dataclasses-json 0.5.9
distlib 0.3.7
dnspython 2.4.2
docutils 0.20.1
dotmap 1.3.30
dulwich 0.21.7
eradicate 2.3.0
fastapi 0.98.0
filelock 3.13.1
flake8 6.0.0
flake8-bandit 4.1.1
flake8-broken-line 1.0.0
flake8-bugbear 23.9.16
flake8-commas 2.1.0
flake8-comprehensions 3.14.0
flake8-debugger 4.1.2
flake8-docstrings 1.7.0
flake8-eradicate 1.5.0
flake8-isort 6.1.0
flake8-quotes 3.3.2
flake8-rst-docstrings 0.3.0
flake8-string-format 0.3.0
frozenlist 1.4.0
gitdb 4.0.11
GitPython 3.1.40
greenlet 3.0.1
grpcio 1.59.2
h11 0.14.0
html5lib 1.1
httpcore 0.18.0
httptools 0.6.1
httpx 0.25.0
identify 2.5.31
idna 3.4
importlib_metadata 7.0.2
iniconfig 2.0.0
installer 0.7.0
isort 5.12.0
jaraco.classes 3.3.1
jeepney 0.8.0
jmespath 1.0.1
jsonpatch 1.33
jsonpointer 2.4
jsonschema 4.21.1
jsonschema-specifications 2023.12.1
kafka-python 2.0.2
keyring 23.13.1
lanarky 0.7.16
langchain 0.0.295
langchain-community 0.0.28
langchain-core 0.1.32
langchain-text-splitters 0.0.1
langsmith 0.0.55
lockfile 0.12.2
loguru 0.7.2
markdown-it-py 3.0.0
marshmallow 3.20.1
marshmallow-enum 1.5.1
mccabe 0.7.0
mdurl 0.1.2
more-itertools 10.2.0
msgpack 1.0.8
multidict 6.0.4
mypy 1.6.1
mypy-extensions 1.0.0
mysqlclient 2.2.4
nodeenv 1.8.0
numexpr 2.8.7
numpy 1.25.2
openai 0.28.1
orjson 3.9.15
packaging 23.2
pathspec 0.11.2
pbr 5.11.1
pep8-naming 0.13.3
pexpect 4.9.0
pinecone-client 2.2.4
pip 23.1.2
pkginfo 1.10.0
platformdirs 3.11.0
pluggy 1.3.0
poetry 1.4.2
poetry-core 1.5.2
poetry-plugin-export 1.3.1
pre-commit 3.5.0
ptyprocess 0.7.0
pycodestyle 2.10.0
pycparser 2.21
pydantic 1.10.13
pydocstyle 6.3.0
pyflakes 3.0.1
Pygments 2.16.1
PyMySQL 1.1.0
pyproject_hooks 1.0.0
pytest 7.4.3
pytest-asyncio 0.21.1
pytest-cov 4.1.0
pytest-env 0.8.2
pytest-mock 3.12.0
python-dateutil 2.8.2
python-dotenv 1.0.0
python-multipart 0.0.6
PyYAML 6.0.1
rapidfuzz 3.6.2
referencing 0.33.0
regex 2023.10.3
replicate 0.8.4
requests 2.31.0
requests-toolbelt 0.10.1
restructuredtext_lint 1.4.0
reworkd-platform 0.1.0 /app/src
rich 13.6.0
rpds-py 0.18.0
s3transfer 0.7.0
SecretStorage 3.3.3
sentry-sdk 1.33.1
setuptools 68.2.2
shellingham 1.5.4
six 1.16.0
smmap 5.0.1
sniffio 1.3.0
snowballstemmer 2.2.0
soupsieve 2.5
SQLAlchemy 2.0.22
starlette 0.27.0
stevedore 5.1.0
stripe 5.5.0
tenacity 8.2.3
tiktoken 0.5.1
tomlkit 0.12.4
tqdm 4.66.1
trove-classifiers 2024.3.3
types-pytz 2023.3.1.1
types-requests 2.31.0.10
typing_extensions 4.8.0
typing-inspect 0.9.0
ujson 5.8.0
urllib3 2.0.7
uvicorn 0.22.0
uvloop 0.19.0
virtualenv 20.24.6
watchfiles 0.21.0
webencodings 0.5.1
websockets 12.0
wemake-python-styleguide 0.18.0
wheel 0.40.0
wikipedia 1.4.0
yarl 1.9.2
zipp 3.18.1
Steps to reproduce
run the setup.bat and the container is running.
set a goal at localhost:3000
Possible solution
No response
Which Operating Systems are you using?
Acknowledgements
The text was updated successfully, but these errors were encountered: