From a0160eef0c60bef6befd4b51f9c5ce2e129b8e95 Mon Sep 17 00:00:00 2001 From: GyDi Date: Tue, 18 Apr 2023 13:51:16 +0800 Subject: [PATCH 01/12] fix: remove duplicate task complete prompt --- autogpt/prompt.py | 1 - 1 file changed, 1 deletion(-) diff --git a/autogpt/prompt.py b/autogpt/prompt.py index a0456305a..2d04a95b8 100644 --- a/autogpt/prompt.py +++ b/autogpt/prompt.py @@ -85,7 +85,6 @@ def get_prompt() -> str: {"code": "", "focus": ""}, ), ("Execute Python File", "execute_python_file", {"file": ""}), - ("Task Complete (Shutdown)", "task_complete", {"reason": ""}), ("Generate Image", "generate_image", {"prompt": ""}), ("Send Tweet", "send_tweet", {"text": ""}), ] From e34ede79b94a8f3f679372f13e4e92178b1fa7b3 Mon Sep 17 00:00:00 2001 From: itaihochman Date: Tue, 18 Apr 2023 08:56:00 +0300 Subject: [PATCH 02/12] Add an option to set the chunk size using the configoration - BROWSE_CHUNK_MAX_LENGTH=4000 This way, we can avoid errors of exceeding chunk size when using gpt-3.5 --- autogpt/processing/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/processing/text.py b/autogpt/processing/text.py index 52add8140..130de4736 100644 --- a/autogpt/processing/text.py +++ b/autogpt/processing/text.py @@ -62,7 +62,7 @@ def summarize_text( print(f"Text length: {text_length} characters") summaries = [] - chunks = list(split_text(text)) + chunks = list(split_text(text, CFG.browse_chunk_max_length)) scroll_ratio = 1 / len(chunks) for i, chunk in enumerate(chunks): From fc6070d574915e493aa4cc8d5e961cc42b4c0ac3 Mon Sep 17 00:00:00 2001 From: Yun Zheng Date: Tue, 18 Apr 2023 17:03:48 +0800 Subject: [PATCH 03/12] Fix Azure Config file location --- autogpt/config/config.py | 2 +- autogpt/llm_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autogpt/config/config.py b/autogpt/config/config.py index bc75b0319..34eccf7c2 100644 --- a/autogpt/config/config.py +++ b/autogpt/config/config.py @@ -131,7 +131,7 @@ class Config(metaclass=Singleton): else: return "" - AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "..", "azure.yaml") + AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "../..", "azure.yaml") def load_azure_config(self, config_file: str = AZURE_CONFIG_FILE) -> None: """ diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.py index 821820ffa..056cd0135 100644 --- a/autogpt/llm_utils.py +++ b/autogpt/llm_utils.py @@ -83,7 +83,7 @@ def create_chat_completion( try: if CFG.use_azure: response = openai.ChatCompletion.create( - deployment_id=CFG.get_azure_deployment_id_for_model(model), + engine=CFG.get_azure_deployment_id_for_model(model), model=model, messages=messages, temperature=temperature, From f7014e87737e6830deabc5979fdffba97f63a867 Mon Sep 17 00:00:00 2001 From: zvrr Date: Tue, 18 Apr 2023 17:06:58 +0800 Subject: [PATCH 04/12] Update config.py azure_model_to_deployment_id_map default type should be a dict, not list --- autogpt/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/config/config.py b/autogpt/config/config.py index bc75b0319..6f84f8762 100644 --- a/autogpt/config/config.py +++ b/autogpt/config/config.py @@ -154,7 +154,7 @@ class Config(metaclass=Singleton): self.openai_api_version = ( config_params.get("azure_api_version") or "2023-03-15-preview" ) - self.azure_model_to_deployment_id_map = config_params.get("azure_model_map", []) + self.azure_model_to_deployment_id_map = config_params.get("azure_model_map", {}) def set_continuous_mode(self, value: bool) -> None: """Set the continuous mode value.""" From c1fe34adcbae2cb9d811d1a1fd6df1278d9e7d25 Mon Sep 17 00:00:00 2001 From: Yun Zheng Date: Tue, 18 Apr 2023 17:24:59 +0800 Subject: [PATCH 05/12] Fix azure_api_type in azure template --- azure.yaml.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure.yaml.template b/azure.yaml.template index 74ca797b2..ab6e9fb62 100644 --- a/azure.yaml.template +++ b/azure.yaml.template @@ -1,4 +1,4 @@ -azure_api_type: azure_ad +azure_api_type: azure azure_api_base: your-base-url-for-azure azure_api_version: api-version-for-azure azure_model_map: From 598eea98511b74fd2e87868a927be0f0de7ab1a9 Mon Sep 17 00:00:00 2001 From: John <81686492+Explorergt92@users.noreply.github.com> Date: Wed, 19 Apr 2023 01:57:47 -0400 Subject: [PATCH 06/12] Update README.md Correcting the cause of issue #2476 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4969e5edd..25062efc4 100644 --- a/README.md +++ b/README.md @@ -138,9 +138,9 @@ _To execute the following commands, open a CMD, Bash, or Powershell window by na # On Linux of Mac: ./run.sh start # On Windows: - ./run.bat start + .\run.bat ``` - Running with `--help` after `start` lists all the possible command line arguments you can pass. + Running with `--help` after `.\run.bat` lists all the possible command line arguments you can pass. 2. After each action, choose from options to authorize command(s), exit the program, or provide feedback to the AI. From a56459fee3a2a8375bbab54bf310a84208099d71 Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Wed, 19 Apr 2023 23:24:48 +1200 Subject: [PATCH 07/12] Update enteprise-sponsors --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25062efc4..f5ff430d3 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Development of this free, open-source project is made possible by all the

-InfluxData    Roost.AI    NucleiAI    AlgohashFe    

+InfluxData    Roost.AI    NucleiAI    AlgohashFe    

robinicus  prompthero  crizzler  tob-le-rone  FSTatSBS  toverly1  ddtarazona  Nalhos  Kazamario  pingbotan  indoor47  AuroraHolding  kreativai  hunteraraujo  Explorergt92  judegomila   From ce8dfcc6048c083984346c44d91bcced35e877a0 Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Wed, 19 Apr 2023 23:29:33 +1200 Subject: [PATCH 08/12] update e-sponsors --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5ff430d3..efdf0c823 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,10 @@ If you can spare a coffee, you can help to cover the costs of developing Auto-GP Your support is greatly appreciated Development of this free, open-source project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here.

+![algohash]()

-InfluxData    Roost.AI    NucleiAI    AlgohashFe    

+InfluxData    Roost.AI    NucleiAI    Algohash    

robinicus  prompthero  crizzler  tob-le-rone  FSTatSBS  toverly1  ddtarazona  Nalhos  Kazamario  pingbotan  indoor47  AuroraHolding  kreativai  hunteraraujo  Explorergt92  judegomila   From d4cef97e2fefea8ff29c688260e5d765884a905c Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Wed, 19 Apr 2023 23:30:15 +1200 Subject: [PATCH 09/12] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index efdf0c823..09522b6a0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ If you can spare a coffee, you can help to cover the costs of developing Auto-GP Your support is greatly appreciated Development of this free, open-source project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here.

-![algohash]()

InfluxData    Roost.AI    NucleiAI    Algohash    

From d163c564e5c33ff70f07608340f1d815a07b6752 Mon Sep 17 00:00:00 2001 From: Toran Bruce Richards Date: Wed, 19 Apr 2023 23:33:44 +1200 Subject: [PATCH 10/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09522b6a0..f0ec8e4ea 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Development of this free, open-source project is made possible by all the robinicus  prompthero  crizzler  tob-le-rone  FSTatSBS  toverly1  ddtarazona  Nalhos  Kazamario  pingbotan  indoor47  AuroraHolding  kreativai  hunteraraujo  Explorergt92  judegomila   thepok   SpacingLily  merwanehamadi  m  zkonduit  maxxflyer  tekelsey  digisomni  nocodeclarity  tjarmain -Josecodesalot  saten-private  kenndanielso  johnculkin  Daniel1357  0xmatchmaker  belharethsami  nicoguyon  josephcmiller2  KiaArmani  Mobivs  rocks6  Odin519Tomas  ChrisDMT  thisisjeffchen  RealChrisSean  AIdevelopersAI  scryptedinc  jun784  goldenrecursion  allenstecat  LeeRobidas  cfarquhar  avy-ai  omphos  sunchongren  CrazySwami  fruition  Web3Capital  jazgarewal  rejunity  dexterityx  hostdp6  shawnharmsen  tommygeee  abhinav-pandey29  ColinConwell  kMag410  lucas-chu  Heitechsoft  bentoml  MediConCenHK  nnkostov  founderblocks-sils  CarmenCocoa  angiaou  fabrietech  Partender  RThaweewat  GalaxyVideoAgency  Brodie0  sultanmeghji  CatsMeow492  caitlynmeeks  garythebat  concreit  Pythagora-io  ASmithOWL  Cameron-Fulton  joaomdmoura  Dradstone  st617  wenfengwang  morcos  CrypteorCapital  jd3655  mathewhawkins  ZERO-A-ONE  MayurVirkar  SwftCoins  marv-technology  cxs  iddelacruz  AryaXAI  lmaugustin  Mr-Bishop42  vixul-accelerator  TheStoneMX  ciscodebs  ntwrite  DataMetis  ikarosai  refinery1  MetaPath01  ternary5  arjunb023  yx3110  vkozacek  eelbaz  rapidstartup  txtr99  tob-le-rone  neverinstall  projectonegames  DailyBotHQ  comet-ml  rickscode  webbcolton  MBassi91  

+Josecodesalot  saten-private  kenndanielso  johnculkin  Daniel1357  0xmatchmaker  belharethsami  nicoguyon  josephcmiller2  KiaArmani  Mobivs  rocks6  Odin519Tomas  ChrisDMT  thisisjeffchen  RealChrisSean  AIdevelopersAI  scryptedinc  jun784  goldenrecursion  allenstecat  LeeRobidas  cfarquhar  avy-ai  omphos  sunchongren  CrazySwami  fruition  Web3Capital  jazgarewal  rejunity  dexterityx  shawnharmsen  tommygeee  abhinav-pandey29  ColinConwell  kMag410  lucas-chu  Heitechsoft  bentoml  MediConCenHK  nnkostov  founderblocks-sils  CarmenCocoa  angiaou  fabrietech  Partender  RThaweewat  GalaxyVideoAgency  Brodie0  sultanmeghji  CatsMeow492  caitlynmeeks  garythebat  concreit  Pythagora-io  ASmithOWL  Cameron-Fulton  joaomdmoura  Dradstone  st617  wenfengwang  morcos  CrypteorCapital  jd3655  mathewhawkins  ZERO-A-ONE  MayurVirkar  SwftCoins  marv-technology  cxs  iddelacruz  AryaXAI  lmaugustin  Mr-Bishop42  vixul-accelerator  TheStoneMX  ciscodebs  ntwrite  DataMetis  ikarosai  refinery1  MetaPath01  ternary5  arjunb023  yx3110  vkozacek  eelbaz  rapidstartup  txtr99  tob-le-rone  neverinstall  projectonegames  DailyBotHQ  comet-ml  rickscode  webbcolton  MBassi91  

## 🚀 Features From bb2066df044b301a7d7534faa755888aa4674608 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Tue, 18 Apr 2023 09:00:12 +0100 Subject: [PATCH 11/12] remove sorcery --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b4245323e..e2d76e048 100644 --- a/requirements.txt +++ b/requirements.txt @@ -27,7 +27,6 @@ flake8 numpy pre-commit black -sourcery isort gitpython==3.1.31 From 45f490e0ad2d8c501a7510d626ab7938573b103e Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Wed, 19 Apr 2023 17:21:06 +0200 Subject: [PATCH 12/12] llm_utils: revert changing `deployment_id` parameter to `engine` --- autogpt/llm_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.py index 056cd0135..821820ffa 100644 --- a/autogpt/llm_utils.py +++ b/autogpt/llm_utils.py @@ -83,7 +83,7 @@ def create_chat_completion( try: if CFG.use_azure: response = openai.ChatCompletion.create( - engine=CFG.get_azure_deployment_id_for_model(model), + deployment_id=CFG.get_azure_deployment_id_for_model(model), model=model, messages=messages, temperature=temperature,