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.64k stars 352 forks source link

Agent Management - OpenAI overrides local configured provider #928

Closed m4t7 closed 1 year ago

m4t7 commented 1 year ago

Description

New Agent Provider setting is not saved. I suspect it is the new error handler. In the console log I get only 200 OKs for all transactions.

I followed the instructions for GPT4all. https://josh-xt.github.io/AGiXT/3-Providers/GPT4ALL.html

image image

Here is a export from an saved GPT4all Agent, it contains not the correct data.

{
    "commands": null,
    "settings": {
        "provider": "openai",
        "embedder": "openai",
        "AI_MODEL": "gpt-3.5-turbo-16k-0613",
        "AI_TEMPERATURE": "0.7",
        "AI_TOP_P": "1",
        "MAX_TOKENS": "16000",
        "helper_agent_name": "OpenAI",
        "WEBSEARCH_TIMEOUT": 0,
        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE",
        "WAIT_BETWEEN_REQUESTS": 1,
        "WAIT_AFTER_FAILURE": 3,
        "stream": false,
        "WORKING_DIRECTORY": "./WORKSPACE",
        "WORKING_DIRECTORY_RESTRICTED": true,
        "AUTONOMOUS_EXECUTION": false
    },
    "enabled_commands": []
}

Steps to Reproduce the Bug

  1. Deploy a new setup via docker-compose method in AGiXT.sh script.
  2. Go to Agent Management
  3. Create new Agent
  4. Select a provider like "gpt4all"
  5. set Provider specific settings
  6. go to bottom and save
  7. export settings or go to Agent Interaction and back to Agent Management select the newly created custom Agent or Test the new agent , the console will show that OpenAI was tried.

Expected Behavior

Saved Provider Settings.

Operating System

Python Version

Environment Type - Connection

Runtime environment

Acknowledgements

Josh-XT commented 1 year ago

I just updated the defaults in v1.3.108 to fix these defaults.

m4t7 commented 1 year ago

Okay but unfortunately this does not fix the real problem. The custom agent provider is still overwritten with the defaults.

Am I doing something wrong?

Josh-XT commented 1 year ago

I see what the issue is now. The way that Gpt4all is initialized has apparently changed and it is erroring. I would recommend a different provider for now, I'll move gpt4all to dev branch for fixing and out of main repo.

m4t7 commented 1 year ago

Okay, then I will check if I can use lamacpp or koboldcpp as backend. (both work without problems on my Arch machine in a local git clone deployment, but I don't prefer them).

If there is something I could test, let me know.