Josh-XT / AGiXT

AGiXT is a dynamic AI Agent Automation Platform that seamlessly orchestrates instruction management and complex task execution across diverse AI providers. Combining adaptive memory, smart features, and a versatile plugin system, AGiXT delivers efficient and comprehensive AI solutions.
https://AGiXT.com
MIT License
2.66k stars 356 forks source link

Is it impossible for agents to work without an Internet connection? #957

Closed AliveDedSec closed 1 year ago

AliveDedSec commented 1 year ago

Description

Hello dear Josh-XT, after restarting the AGiXT containers, when I go to the agents configuration tab, it needs to download about 200 megabytes of data from the Internet. If the Internet is disabled at this moment, the agent settings are not loaded. Without the Internet, the project does not work even if the network functions are turned off. I tried to disable all commands and all Internet-related functions for all agents in their settings, it did not help.

Is it impossible for AGiXT to work completely offline without Internet access? I would like to know if it is possible to work with AGiXT completely offline with local language models? Perhaps this is due to the fact that you want to hard-tie AGiXT to your servers? Perhaps you plan to do something like a paid subscription to use AGiXT in the future? I just do not know your plans and would like to clarify for myself, to find out the details. This is not a criticism of your project, these are just questions.

The fact is that I only have mobile Internet, its speed is limited. I have moments when there is no internet access. My internet traffic is limited. In addition, my ISP sometimes blocks AGiXT network connections, I have to use VPN or TOR, which makes using AGiXT even more difficult. And it is inconvenient for me to wait 5 or 10 minutes each time AGiXT containers are restarted while AGiXT downloads these unfortunate 200 megabytes for its work. I often have to restart AGiXT containers during my experiments.

Maybe there is a way to minimize AGiXT's dependence on the Internet? Enable caching? Installing additional software.

Sorry for creating this thread in Issues. I previously asked one of the questions in the Discussions, but I understand you don't follow the Discussions that closely. https://github.com/Josh-XT/AGiXT/discussions/955

And just my thoughts. If AGiXT has autonomous artificial intelligence (AGI) as its ultimate goal, then 100% reliance on an Internet connection for AGiXT to function will not achieve this goal. That is, our AGI will not be able to execute/finish the task autonomously. Let's say if this is a local AI model that provides, for example, security systems for your home, or access control to your home. It is enough for attackers to disable your Internet. And your AGI will break. This is just a theoretical scenario. I am for a standalone AGI powered by an uninterruptible power supply)))

Yours sincerely, Josh-XT.

Steps to Reproduce the Bug

  1. Turn off the Internet
    1. Run AGiXT option 1
    2. Open control panel
    3. Open the agent settings page (1.infinite loading 2.Errors in agent settings)
    4. The impossibility of the project to work with local language models (Koboldcpp) *I specifically disabled all agent commands and other features that require an internet connection
    5. When the Internet is on, there are no such problems.

Expected Behavior

Autonomous work of AGiXT with local language models (I really want to have such an opportunity)

Operating System

Python Version

Environment Type - Connection

Runtime environment

Acknowledgements

Josh-XT commented 1 year ago

It should not have an issue with this after first launch. The download you're seeing might be it trying to update the hub, but it should proceed to work even if it cannot communicate with the hub. I just added into the Dockerfile to download the default Hub during build and set the launch script to only update the hub if you set auto update to enabled. I think those changes should resolve any residual from this issue, but could you confirm that it is working as expected with the latest changes?

Most discussions about AGiXT happen in our discord: https://discord.gg/d3TkHRZcjD - I handle issues when they're created here, but most of my time is spent in the development.

AliveDedSec commented 1 year ago

Yes, your latest update solved the internet dependency issue. Pulling data (~200 megabytes) on each reload of AGiXT containers stopped and the agent was able to work autonomously with Koboldcpp. But it seems that there are new errors related to the creation and configuration of agents. I can't create a new agent, I get an error related to set. There are also no agent commands. There is only an item to select all commands, but these settings are not applied when this checkbox is selected. I am actively testing your project, if the errors persist, I will write a detailed bug report. While I'm testing and trying to set it up. I'm reinstalling the project from scratch.

AliveDedSec commented 1 year ago

Please take a look at my question https://github.com/Josh-XT/AGiXT/discussions/955

AliveDedSec commented 1 year ago

AGiXT v1.3.128 Latest Clean installation by copying the folder Source code (zip) v1.3.128, with preliminary cleaning of the hub (8. Wipe AGiXT Hub (Irreversible). Installation option 1. (7. Update AGiXT ) 2. Run AGiXT (Recommended)

At the first start, the Agent_Management tab does not have any standard agents in the drop-down list as it was before. When trying to create a new agent I get: Agent Management Agent Name kobold

Error loading agent configuration: 'str' object has no attribute 'get'

I am attaching the full log for these operations.

Visit our documentation at https://AGiXT.com 
Welcome to the AGiXT Installer!
Please choose an option:
  1. Run AGiXT (Recommended)
  2. Run AGiXT with Text Generation Web UI (NVIDIA Only)
  3. Run AGiXT with Text Generation Web UI and Stable Diffusion (NVIDIA Only)
Developer Only Options (Not recommended or supported):
  4. Run AGiXT with Docker from Main Branch
  5. Run AGiXT with Docker from Main Branch + Addons (NVIDIA Only)
  6. Run AGiXT on local machine
Manage:
  7. Update AGiXT 
  8. Wipe AGiXT Hub (Irreversible)
  9. Exit

Enter your choice: 1
Starting Docker Compose...
[+] Running 3/2
 ✔ Network agixt_default        Created                                    0.0s 
 ✔ Container agixt-agixt-1      Created                                    0.1s 
 ✔ Container agixt-streamlit-1  Created                                    0.1s 
Attaching to agixt-agixt-1, agixt-streamlit-1
agixt-agixt-1      | Loading environment variables from .env file in parent directory...
agixt-agixt-1      | Starting AGiXT... Please wait until you see 'Applicaton startup complete' before opening Streamlit...
agixt-streamlit-1  | 
agixt-streamlit-1  |   You can now view your Streamlit app in your browser.
agixt-streamlit-1  | 
agixt-streamlit-1  |   Network URL: http://172.18.0.3:8501
agixt-streamlit-1  | 
agixt-streamlit-1  |   External URL: http://176.59.41.191:8501
agixt-streamlit-1  | 
agixt-streamlit-1  | 
agixt-agixt-1      | INFO:     Uvicorn running on http://0.0.0.0:7437 (Press CTRL+C to quit)
agixt-agixt-1      | INFO:     Started parent process [10]
agixt-agixt-1      | INFO:     Started server process [21]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [16]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [15]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [20]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [12]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [14]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [19]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [18]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [13]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [17]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     172.18.0.3:54680 - "GET /api/OpenAI/conversations HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54690 - "GET /api/conversation HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54702 - "GET /api/OpenAI/conversations HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54714 - "GET /api/conversation HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54718 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54722 - "GET /api/OpenAI/conversations HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54732 - "GET /api/conversation HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54746 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54748 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54764 - "GET /api/provider HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54766 - "GET /api/embedding_providers HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54774 - "GET /api/extensions/settings HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:54786 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:46404 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:46406 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:46420 - "POST /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:46434 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:46448 - "GET /api/agent/kobold HTTP/1.1" 500 Internal Server Error
agixt-agixt-1      | ERROR:    Exception in ASGI application
agixt-agixt-1      | Traceback (most recent call last):
agixt-agixt-1      |   File "/agixt/Providers.py", line 49, in __init__
agixt-agixt-1      |     module = importlib.import_module(f"providers.{name}")
agixt-agixt-1      |   File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
agixt-agixt-1      |     return _bootstrap._gcd_import(name[level:], package, level)
agixt-agixt-1      |   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
agixt-agixt-1      |   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
agixt-agixt-1      |   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
agixt-agixt-1      |   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
agixt-agixt-1      |   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
agixt-agixt-1      |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
agixt-agixt-1      |   File "/agixt/providers/gpt4free.py", line 4, in <module>
agixt-agixt-1      |     from g4f import Provider, ChatCompletion
agixt-agixt-1      |   File "/src/g4f/g4f/__init__.py", line 1, in <module>
agixt-agixt-1      |     from .          import models
agixt-agixt-1      |   File "/src/g4f/g4f/models.py", line 2, in <module>
agixt-agixt-1      |     from .Provider import Bard, BaseProvider, GetGpt, H2o, Liaobots, Vercel, Equing
agixt-agixt-1      |   File "/src/g4f/g4f/Provider/__init__.py", line 20, in <module>
agixt-agixt-1      |     from .OpenaiChat    import OpenaiChat
agixt-agixt-1      |   File "/src/g4f/g4f/Provider/OpenaiChat.py", line 9, in <module>
agixt-agixt-1      |     from httpx import AsyncClient
agixt-agixt-1      | ModuleNotFoundError: No module named 'httpx'
agixt-agixt-1      | 
agixt-agixt-1      | The above exception was the direct cause of the following exception:
agixt-agixt-1      | 
agixt-agixt-1      | Traceback (most recent call last):
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
agixt-agixt-1      |     result = await app(  # type: ignore[func-returns-value]
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
agixt-agixt-1      |     return await self.app(scope, receive, send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 276, in __call__
agixt-agixt-1      |     await super().__call__(scope, receive, send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
agixt-agixt-1      |     await self.middleware_stack(scope, receive, send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
agixt-agixt-1      |     raise exc
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
agixt-agixt-1      |     await self.app(scope, receive, _send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in __call__
agixt-agixt-1      |     await self.app(scope, receive, send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
agixt-agixt-1      |     raise exc
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
agixt-agixt-1      |     await self.app(scope, receive, sender)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
agixt-agixt-1      |     raise e
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
agixt-agixt-1      |     await self.app(scope, receive, send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
agixt-agixt-1      |     await route.handle(scope, receive, send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
agixt-agixt-1      |     await self.app(scope, receive, send)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
agixt-agixt-1      |     response = await func(request)
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
agixt-agixt-1      |     raw_response = await run_endpoint_function(
agixt-agixt-1      |   File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
agixt-agixt-1      |     return await dependant.call(**values)
agixt-agixt-1      |   File "/agixt/app.py", line 566, in get_agentconfig
agixt-agixt-1      |     agent_config = Agent(agent_name=agent_name).get_agent_config()
agixt-agixt-1      |   File "/agixt/fb/Agent.py", line 123, in __init__
agixt-agixt-1      |     self.PROVIDER = Providers(self.AI_PROVIDER, **self.PROVIDER_SETTINGS)
agixt-agixt-1      |   File "/agixt/Providers.py", line 57, in __init__
agixt-agixt-1      |     raise AttributeError(f"module {__name__} has no attribute {name}") from e
agixt-agixt-1      | AttributeError: module Providers has no attribute gpt4free
agixt-agixt-1      | 
AliveDedSec commented 1 year ago

Restarting the project containers, manually deleting the "failed" kobold agent from the project folder, re-running the project and trying to create the kobold agent

Agent Management

Agent Name kobold

Select Provider gpt4free Agent Settings

Missing Submit Button

This form has no submit button, which means that user interactions will never be sent to your Streamlit app.

To create a submit button, use the st.form_submit_button() function.

For more information, refer to the documentation for forms.

Error loading agent configuration: 'gpt4free' is not in list

Visit our documentation at https://AGiXT.com 
Welcome to the AGiXT Installer!
Please choose an option:
  1. Run AGiXT (Recommended)
  2. Run AGiXT with Text Generation Web UI (NVIDIA Only)
  3. Run AGiXT with Text Generation Web UI and Stable Diffusion (NVIDIA Only)
Developer Only Options (Not recommended or supported):
  4. Run AGiXT with Docker from Main Branch
  5. Run AGiXT with Docker from Main Branch + Addons (NVIDIA Only)
  6. Run AGiXT on local machine
Manage:
  7. Update AGiXT 
  8. Wipe AGiXT Hub (Irreversible)
  9. Exit

Enter your choice: 1
Starting Docker Compose...
[+] Running 2/2
 ✔ Container agixt-agixt-1      Recreated                                  0.3s 
 ✔ Container agixt-streamlit-1  Recreated                                  0.4s 
Attaching to agixt-agixt-1, agixt-streamlit-1
agixt-agixt-1      | Loading environment variables from .env file in parent directory...
agixt-agixt-1      | Starting AGiXT... Please wait until you see 'Applicaton startup complete' before opening Streamlit...
agixt-agixt-1      | INFO:     Uvicorn running on http://0.0.0.0:7437 (Press CTRL+C to quit)
agixt-agixt-1      | INFO:     Started parent process [9]
agixt-streamlit-1  | 
agixt-streamlit-1  |   You can now view your Streamlit app in your browser.
agixt-streamlit-1  | 
agixt-streamlit-1  | 
agixt-streamlit-1  |   Network URL: http://172.18.0.3:8501
agixt-streamlit-1  |   External URL: http://176.59.55.65:8501
agixt-streamlit-1  | 
agixt-streamlit-1  | 
agixt-agixt-1      | INFO:     Started server process [13]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [17]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [12]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [16]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [20]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [19]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [14]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [11]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [18]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     Started server process [15]
agixt-agixt-1      | INFO:     Waiting for application startup.
agixt-agixt-1      | INFO:     Application startup complete.
agixt-agixt-1      | INFO:     172.18.0.3:34426 - "GET /api/provider HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:34442 - "GET /api/embedding_providers HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:34454 - "GET /api/extensions/settings HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:34466 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:34476 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:48196 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:48200 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:48208 - "POST /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:48222 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:48232 - "GET /api/agent/kobold HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:46796 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:46800 - "GET /api/agent/kobold HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:51988 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:51998 - "GET /api/agent/kobold HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:52012 - "GET /api/agent HTTP/1.1" 200 OK
agixt-agixt-1      | INFO:     172.18.0.3:52028 - "GET /api/agent/kobold HTTP/1.1" 200 OK
AliveDedSec commented 1 year ago

http://172.18.0.3:8501/Prompt_Management Prompt Management

Action Create New Prompt ValueError: 'Default' is not in list Traceback:

File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script exec(code, module.dict) File "/app/pages/4-Prompt_Management.py", line 44, in index=prompt_categories.index("Default"),

Please choose an option:

  1. Run AGiXT (Recommended)
  2. Run AGiXT with Text Generation Web UI (NVIDIA Only)
  3. Run AGiXT with Text Generation Web UI and Stable Diffusion (NVIDIA Only) Developer Only Options (Not recommended or supported):
  4. Run AGiXT with Docker from Main Branch
  5. Run AGiXT with Docker from Main Branch + Addons (NVIDIA Only)
  6. Run AGiXT on local machine Manage:
  7. Update AGiXT
  8. Wipe AGiXT Hub (Irreversible)
  9. Exit

Enter your choice: 1 Starting Docker Compose... [+] Running 2/0 ✔ Container agixt-agixt-1 Created 0.0s ✔ Container agixt-streamlit-1 Created 0.0s Attaching to agixt-agixt-1, agixt-streamlit-1 agixt-agixt-1 | Loading environment variables from .env file in parent directory... agixt-agixt-1 | Starting AGiXT... Please wait until you see 'Applicaton startup complete' before opening Streamlit... agixt-agixt-1 | INFO: Uvicorn running on http://0.0.0.0:7437 (Press CTRL+C to quit) agixt-agixt-1 | INFO: Started parent process [9] agixt-streamlit-1 | agixt-streamlit-1 | You can now view your Streamlit app in your browser. agixt-streamlit-1 | agixt-streamlit-1 | agixt-streamlit-1 | Network URL: http://172.18.0.3:8501 agixt-streamlit-1 | External URL: http://176.59.57.113:8501 agixt-streamlit-1 | agixt-streamlit-1 | agixt-agixt-1 | INFO: Started server process [12] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [11] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [13] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [14] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [16] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [19] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [15] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [17] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [20] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: Started server process [18] agixt-agixt-1 | INFO: Waiting for application startup. agixt-agixt-1 | INFO: Application startup complete. agixt-agixt-1 | INFO: 172.18.0.3:41062 - "GET /api/provider HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41064 - "GET /api/embedding_providers HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41072 - "GET /api/extensions/settings HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41074 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41088 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41104 - "GET /api/OpenAI/conversations HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41116 - "GET /api/conversation HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41118 - "GET /api/OpenAI/conversations HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41132 - "GET /api/conversation HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41146 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:41150 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:59830 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:59846 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:59852 - "GET /api/prompt/categories HTTP/1.1" 200 OK agixt-streamlit-1 | 2023-08-29 21:15:40.413 Uncaught app exception agixt-streamlit-1 | Traceback (most recent call last): agixt-streamlit-1 | File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script agixt-streamlit-1 | exec(code, module.dict) agixt-streamlit-1 | File "/app/pages/4-Prompt_Management.py", line 44, in agixt-streamlit-1 | index=prompt_categories.index("Default"), agixt-streamlit-1 | ValueError: 'Default' is not in list agixt-agixt-1 | INFO: 172.18.0.3:59856 - "GET /api/chain HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:59858 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:59866 - "GET /api/prompt/categories HTTP/1.1" 200 OK agixt-streamlit-1 | 2023-08-29 21:15:41.793 Uncaught app exception agixt-streamlit-1 | Traceback (most recent call last): agixt-streamlit-1 | File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script agixt-streamlit-1 | exec(code, module.dict) agixt-streamlit-1 | File "/app/pages/4-Prompt_Management.py", line 44, in agixt-streamlit-1 | index=prompt_categories.index("Default"), agixt-streamlit-1 | ValueError: 'Default' is not in list agixt-agixt-1 | INFO: 172.18.0.3:59876 - "GET /api/prompt/categories HTTP/1.1" 200 OK agixt-streamlit-1 | 2023-08-29 21:15:45.615 Uncaught app exception agixt-streamlit-1 | Traceback (most recent call last): agixt-streamlit-1 | File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script agixt-streamlit-1 | exec(code, module.dict) agixt-streamlit-1 | File "/app/pages/4-Prompt_Management.py", line 44, in agixt-streamlit-1 | index=prompt_categories.index("Default"), agixt-streamlit-1 | ValueError: 'Default' is not in list agixt-agixt-1 | INFO: 172.18.0.3:40518 - "GET /api/chain HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:40522 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:40538 - "GET /api/prompt/categories HTTP/1.1" 200 OK agixt-streamlit-1 | 2023-08-29 21:15:51.951 Uncaught app exception agixt-streamlit-1 | Traceback (most recent call last): agixt-streamlit-1 | File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script agixt-streamlit-1 | exec(code, module.dict) agixt-streamlit-1 | File "/app/pages/4-Prompt_Management.py", line 44, in agixt-streamlit-1 | index=prompt_categories.index("Default"), agixt-streamlit-1 | ValueError: 'Default' is not in list agixt-agixt-1 | INFO: 172.18.0.3:54414 - "GET /api/chain HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:54420 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:54424 - "GET /api/prompt/categories HTTP/1.1" 200 OK agixt-streamlit-1 | 2023-08-29 21:16:12.580 Uncaught app exception agixt-streamlit-1 | Traceback (most recent call last): agixt-streamlit-1 | File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script agixt-streamlit-1 | exec(code, module.dict) agixt-streamlit-1 | File "/app/pages/4-Prompt_Management.py", line 44, in agixt-streamlit-1 | index=prompt_categories.index("Default"), agixt-streamlit-1 | ValueError: 'Default' is not in list agixt-agixt-1 | INFO: 172.18.0.3:54428 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:54442 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:35958 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:35962 - "GET /api/OpenAI/conversations HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:35976 - "GET /api/conversation HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:35992 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:36006 - "GET /api/chain HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:36022 - "GET /api/agent HTTP/1.1" 200 OK agixt-agixt-1 | INFO: 172.18.0.3:36028 - "GET /api/prompt/categories HTTP/1.1" 200 OK agixt-streamlit-1 | 2023-08-29 21:16:19.445 Uncaught app exception agixt-streamlit-1 | Traceback (most recent call last): agixt-streamlit-1 | File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script agixt-streamlit-1 | exec(code, module.dict) agixt-streamlit-1 | File "/app/pages/4-Prompt_Management.py", line 44, in agixt-streamlit-1 | index=prompt_categories.index("Default"), agixt-streamlit-1 | ValueError: 'Default' is not in list

AliveDedSec commented 1 year ago

I solved all the problems, everything worked. But only after I manually replaced AGIXT_AUTO_UPDATE=false On AGIXT_AUTO_UPDATE=true After that http://172.19.0.3:8501/Agent_Management pulled the necessary data from https://github.com/AGiXT/hub and everything worked. I have a question for you why **manage:

  1. Update AGiXT** does not update the hub? Why doesn't he update the entire project at once, this point? It turns out that every time I manually have to enable/disable AGIXT_AUTO_UPDATE=true

.env

DB_CONNECTED=false AGIXT_AUTO_UPDATE=true AGIXT_HUB=AGiXT/hub AGIXT_API_KEY= UVICORN_WORKERS=10 GITHUB_USER= GITHUB_TOKEN= POSTGRES_SERVER=db POSTGRES_PORT=5432 POSTGRES_DB=postgres POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres AGIXT_URI=http://agixt:7437 TEXTGEN_URI=http://text-generation-webui:5000

Josh-XT commented 1 year ago

I solved all the problems, everything worked. But only after I manually replaced AGIXT_AUTO_UPDATE=false On AGIXT_AUTO_UPDATE=true After that http://172.19.0.3:8501/Agent_Management pulled the necessary data from https://github.com/AGiXT/hub and everything worked. I have a question for you why manage: 7. Update AGiXT does not update the hub? Why doesn't he update the entire project at once, this point? It turns out that every time I manually have to enable/disable AGIXT_AUTO_UPDATE=true

.env

DB_CONNECTED=false AGIXT_AUTO_UPDATE=true AGIXT_HUB=AGiXT/hub AGIXT_API_KEY= UVICORN_WORKERS=10 GITHUB_USER= GITHUB_TOKEN= POSTGRES_SERVER=db POSTGRES_PORT=5432 POSTGRES_DB=postgres POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres AGIXT_URI=http://agixt:7437 TEXTGEN_URI=http://text-generation-webui:5000

The hub is inside of the docker container, it will update when launched if AGIXT_AUTO_UPDATE is set to true, but will not otherwise. I think I am going to change the "Update" option in the installer to a toggle to either enable or disable auto update depending on the current setting.

There will be a slight rework to the hub concept in the next few days. There will not be a "default hub" anymore soon. AGiXT will come packaged with several core providers and extensions that don't have special dependencies (like Transformers) and the ones that do will be in the hub as an optional thing to enable for your AGiXT instance instead of pulling the open source hub every time. I'm hoping to have all of that implemented in the next few days.