Black formatting

pull/2429/head
Richard Beales 2023-04-18 20:11:26 +01:00
parent 4a07790910
commit 90e6a55e37
3 changed files with 7 additions and 4 deletions

View File

@ -61,7 +61,7 @@ def main(
memory_type: str,
browser_name: str,
allow_downloads: bool,
skip_news: bool
skip_news: bool,
) -> None:
"""
Welcome to AutoGPT an experimental open-source application showcasing the capabilities of the GPT-4 pushing the boundaries of AI.
@ -97,7 +97,7 @@ def main(
memory_type,
browser_name,
allow_downloads,
skip_news
skip_news,
)
logger.set_level(logging.DEBUG if cfg.debug_mode else logging.INFO)
ai_name = ""

View File

@ -22,7 +22,7 @@ def create_config(
memory_type: str,
browser_name: str,
allow_downloads: bool,
skip_news: bool
skip_news: bool,
) -> None:
"""Updates the config object with the given arguments.

View File

@ -39,9 +39,12 @@ def readable_file_size(size, decimal_places=2):
size /= 1024.0
return f"{size:.{decimal_places}f} {unit}"
def get_latest_bulletin() -> str:
try:
response = requests.get('https://raw.githubusercontent.com/Significant-Gravitas/Auto-GPT/master/BULLETIN.md')
response = requests.get(
"https://raw.githubusercontent.com/Significant-Gravitas/Auto-GPT/master/BULLETIN.md"
)
if response.status_code == 200:
return response.text
except: