From 4d8de551b54f7b83157757a4e4b30f59ef917319 Mon Sep 17 00:00:00 2001 From: Eddie Cohen Date: Thu, 13 Apr 2023 21:03:19 -0400 Subject: [PATCH] add prompt, env example, config --- .env.template | 10 ++++++++++ autogpt/config/config.py | 3 +++ autogpt/prompt.py | 1 + 3 files changed, 14 insertions(+) diff --git a/.env.template b/.env.template index b8140dd8..9013560f 100644 --- a/.env.template +++ b/.env.template @@ -99,6 +99,16 @@ IMAGE_PROVIDER=dalle # HUGGINGFACE_API_TOKEN - HuggingFace API token (Example: my-huggingface-api-token) HUGGINGFACE_API_TOKEN=your-huggingface-api-token +################################################################################ +### GIT Provider for repository actions +################################################################################ + +### GITHUB +# GITHUB_API_KEY - Github API key / PAT (Example: github_pat_123) +# GITHUB_USERNAME - Github username +GITHUB_API_KEY=github_pat_123 +GITHUB_USERNAME=your-github-username + ################################################################################ ### SEARCH PROVIDER ################################################################################ diff --git a/autogpt/config/config.py b/autogpt/config/config.py index 667c8178..1fe4a870 100644 --- a/autogpt/config/config.py +++ b/autogpt/config/config.py @@ -55,6 +55,9 @@ class Config(metaclass=Singleton): self.use_brian_tts = False self.use_brian_tts = os.getenv("USE_BRIAN_TTS") + + self.github_api_key = os.getenv("GITHUB_API_KEY") + self.github_username = os.getenv("GITHUB_USERNAME") self.google_api_key = os.getenv("GOOGLE_API_KEY") self.custom_search_engine_id = os.getenv("CUSTOM_SEARCH_ENGINE_ID") diff --git a/autogpt/prompt.py b/autogpt/prompt.py index 050c2560..20492978 100644 --- a/autogpt/prompt.py +++ b/autogpt/prompt.py @@ -55,6 +55,7 @@ def get_prompt() -> str: ), ("List GPT Agents", "list_agents", {}), ("Delete GPT Agent", "delete_agent", {"key": ""}), + ("Clone Repository", "clone_repository", {"repository_url": "", "clone_path": ""}), ("Write to file", "write_to_file", {"file": "", "text": ""}), ("Read file", "read_file", {"file": ""}), ("Append to file", "append_to_file", {"file": "", "text": ""}),