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
OPENAI_API_KEY OPENAI_API_BASE GOOGLE_API_KEY GOOGLE_CSE_ID
version: "3" services: autogents: container_name: autoagents image: linksoul.ai/autoagents:1.0 ports: - "7860:7860" environment: - OPENAI_API_KEY=sk-dxxxxxxxxxxxxxxxxxxxxx - OPENAI_API_BASE=https://xxxxxxxxxxxxxxxx/v1 - GOOGLE_API_KEY=xxxxxxxxxxxx - GOOGLE_CSE_ID=xxxxxxxxxxxxxxxxxxxxx
OPENAI_API_KEY
serpapi_key
运行demo:write a novel
*** Starting uWSGI 2.0.21 (64bit) on [Sun Sep 3 07:56:42 2023] *** compiled with version: 10.2.1 20210110 on 28 August 2023 00:19:00 os: Linux-6.2.16-4-bpo11-pve #1 SMP PREEMPT_DYNAMIC PVE 6.2.16-4~bpo11+1 (2023-07-07T15:05Z) nodename: c0b5303aa6bf machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 16 current working directory: /app/autoagents detected binary path: /usr/local/bin/uwsgi your processes number limit is 255937 your memory page size is 4096 bytes detected max file descriptor number: 524288 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3 Python version: 3.10.13 (main, Aug 26 2023, 00:59:23) [GCC 10.2.1 20210110] *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0x564ecd919d00 your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 1239640 bytes (1210 KB) for 16 cores *** Operational MODE: preforking *** WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x564ecd919d00 pid: 21 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 21) spawned uWSGI worker 1 (pid: 23, cores: 1) spawned uWSGI worker 2 (pid: 24, cores: 1) running "unix_signal:15 gracefully_kill_them_all" (master-start)... 2023-09-03 07:56:43,071 INFO success: quit_on_failure entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /style.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /libs/bootsrap.min.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/css/bulma-slider.min.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/css/fontawesome.all.min.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/css/bulma.min.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/css/bulma-carousel.min.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/css/index.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/css/bootsrap.min.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/css/styles.css HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/js/bulma-carousel.min.js HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/js/bulma-slider.min.js HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /demo.html HTTP/1.1" 304 0 "http://192.168.125.104:7860/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 304 0 "http://192.168.125.104:7860/static/css/fontawesome.all.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /static/webfonts/fa-brands-400.woff2 HTTP/1.1" 304 0 "http://192.168.125.104:7860/static/css/fontawesome.all.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /libs/bootstrap.bundle.min.js HTTP/1.1" 304 0 "http://192.168.125.104:7860/demo.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:51 +0000] "GET /js/app_websocket.js HTTP/1.1" 304 0 "http://192.168.125.104:7860/demo.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 2023-09-03 07:56:51,465 | WARNING | ws_service:echo:129 - New user registered, uid: 20230903075651.465486_ea38d31a-5d73-4e21-b50f-7199323210ce 192.168.125.107 - - [03/Sep/2023:07:56:53 +0000] "GET / HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 192.168.125.107 - - [03/Sep/2023:07:56:53 +0000] "GET /api HTTP/1.1" 101 4 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 2023-09-03 07:56:53,282 | WARNING | ws_service:echo:143 - Websocket closed: remote endpoint going away 2023-09-03 07:56:53,282 | WARNING | ws_service:echo:147 - Auto unregister, uid: 20230903075651.465486_ea38d31a-5d73-4e21-b50f-7199323210ce 2023-09-03 07:56:53,425 | WARNING | ws_service:echo:129 - New user registered, uid: 20230903075653.425462_8c831a89-4c5f-45f1-943a-e407ca78dcdb 192.168.125.107 - - [03/Sep/2023:07:57:18 +0000] "GET /images/default.jpg HTTP/1.1" 304 0 "http://192.168.125.104:7860/demo.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 2023-09-03 07:57:18,544 | WARNING | ws_service:handle_message_wrapper:65 - New task:ea39abd4-96c2-4ea6-9e0c-c5687c67c311 2023-09-03 07:57:18.545 | INFO | autoagents.explorer:invest:33 - Investment: $3.0. 2023-09-03 07:57:18.547 | INFO | autoagents.roles.role:_act:167 - Ethan(Manager): ready to CreateRoles 192.168.125.107 - - [03/Sep/2023:07:57:18 +0000] "GET /images/1.jpg HTTP/1.1" 304 0 "http://192.168.125.104:7860/demo.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" "-" 2023-09-03 07:57:55,030 | ERROR | ws_service:handle_message:62 - Traceback (most recent call last): File "/app/autoagents/ws_service.py", line 55, in handle_message await startup.startup(idea=idea, task_id=task_id, llm_api_key=llm_api_key, serpapi_key=serpapi_key, proxy=proxy, alg_msg_queue=alg_msg_queue) File "/app/autoagents/startup.py", line 17, in startup await explorer.run(n_round=n_round) File "/app/autoagents/autoagents/explorer.py", line 59, in run await self.environment.run() File "/app/autoagents/autoagents/environment.py", line 186, in run await asyncio.gather(*futures) File "/app/autoagents/autoagents/roles/role.py", line 239, in run rsp = await self._react() File "/app/autoagents/autoagents/roles/role.py", line 209, in _react return await self._act() File "/app/autoagents/autoagents/roles/role.py", line 168, in _act response = await self._rc.todo.run(self._rc.important_memory) File "/app/autoagents/autoagents/actions/create_roles.py", line 123, in run rsp = await sas.run(context=context, system_text=SEARCH_AND_SUMMARIZE_SYSTEM_EN_US) File "/app/autoagents/autoagents/actions/search_and_summarize.py", line 151, in run result = await self._aask(prompt, system_prompt) File "/app/autoagents/autoagents/actions/action.py", line 48, in _aask return await self.llm.aask(prompt, system_msgs) File "/app/autoagents/autoagents/provider/base_gpt_api.py", line 41, in aask rsp = await self.acompletion_text(message, stream=True) File "/app/autoagents/autoagents/provider/openai_api.py", line 32, in wrapper return await f(*args, **kwargs) File "/app/autoagents/autoagents/provider/openai_api.py", line 228, in acompletion_text return await self._achat_completion_stream(messages) File "/app/autoagents/autoagents/provider/openai_api.py", line 162, in _achat_completion_stream response = await openai.ChatCompletion.acreate( File "/home/user/.local/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 45, in acreate return await super().acreate(*args, **kwargs) File "/home/user/.local/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 217, in acreate response, _, api_key = await requestor.arequest( File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 382, in arequest resp, got_stream = await self._interpret_async_response(result, stream) File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 726, in _interpret_async_response self._interpret_response_line( File "/home/user/.local/lib/python3.10/site-packages/openai/api_requestor.py", line 743, in _interpret_response_line raise error.ServiceUnavailableError( openai.error.ServiceUnavailableError: The server is overloaded or not ready yet.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在x86环境下编译镜像,然后成功运行容器,配置环境变量:
配置环境变量的方式为docker-compose.yml
前端配置
OPENAI_API_KEY
,serpapi_key
运行demo:write a novel
出现如下错误:
The text was updated successfully, but these errors were encountered: