AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(agent): Support OpenAI Project API keys (#7099)
Fullstop00086bdbb82b19d
diff --git a/autogpts/autogpt/autogpt/config/config.py b/autogpts/autogpt/autogpt/config/config.pyindex 4ea94fc77d..475ad745d2 100644--- a/autogpts/autogpt/autogpt/config/config.py+++ b/autogpts/autogpt/autogpt/config/config.py@@ -289,7 +289,7 @@ class ConfigBuilder(Configurable[Config]):def assert_config_has_openai_api_key(config: Config) -> None:"""Check if the OpenAI API key is set in config.py or as an environment variable."""- key_pattern = r"^sk-\w{48}"+ key_pattern = r"^sk-(proj-)?\w{48}"openai_api_key = (config.openai_credentials.api_key.get_secret_value()if config.openai_credentials