AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

REWORKD_PLATFORM_MAX_LOOPS issue

Open PoolarBBear opened this issue 2 years ago • 3 comments

Please check that this issue hasn't been reported before.

  • [X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

I can edit REWORKD_PLATFORM_MAX_LOOPS in docker-compose.yml, or edit REWORKD_PLATFORM_MAX_LOOPS in platform/.env then the settings of page can change the max loops,but the max loops is still 25

Current behaviour

i've added the REWORKD_PLATFORM_MAX_LOOPS:"200" in docker-compose.yml(service:platform envirenment),and i have not see platform/.env this file,but docs says: If you want to increase the max loops you agent has locally this can be done by modifying REWORKD_PLATFORM_MAX_LOOPS variable in your platform/.env file. It can also be done by directly modifying the platform's source code in settings.py (not recommended).

Steps to reproduce

change docker-compose.yml or /next/.env can't fix it,and there's no /platform/.env

Possible solution

No response

Which Operating Systems are you using?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [ ] macOS
  • [X] Windows

Acknowledgements

  • [X] My issue title is concise, descriptive, and in title casing.
  • [X] I have searched the existing issues to make sure this bug has not been reported yet.
  • [X] I am using the latest version of AgentGPT.
  • [X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

PoolarBBear avatar Jun 06 '23 17:06 PoolarBBear

Hey @PoolarBBear! Would you be able to share you config file here (make sure to black out your keys). It should look similar to what is below:

# NextJS:
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
NEXT_PUBLIC_MAX_LOOPS=25

# Next Auth config:
...

# Backend:
REWORKD_PLATFORM_ENVIRONMENT=development
REWORKD_PLATFORM_FF_MOCK_MODE_ENABLED=false
REWORKD_PLATFORM_MAX_LOOPS=${NEXT_PUBLIC_MAX_LOOPS}
...

The config file is generate by running the ./setup.sh script :)

awtkns avatar Jun 06 '23 18:06 awtkns

in useSetting.ts ,code: if (settings.customMaxLoops && settings.customMaxLoops > 25) { settings.customMaxLoops = 25; }

xy-0608 avatar Jun 06 '23 21:06 xy-0608

I am also facing the same issue is there any update on this ?

aibysid avatar Jan 02 '24 14:01 aibysid