mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
formatting changes
This commit is contained in:
@@ -97,7 +97,9 @@ class AgentProtocolServer:
|
||||
app.include_router(router, prefix="/ap/v1")
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
frontend_path = (
|
||||
pathlib.Path(script_dir).joinpath("../../../classic/classic/frontend/build/web").resolve()
|
||||
pathlib.Path(script_dir)
|
||||
.joinpath("../../../classic/frontend/build/web")
|
||||
.resolve()
|
||||
)
|
||||
|
||||
if os.path.exists(frontend_path):
|
||||
|
||||
@@ -176,7 +176,8 @@ async def assert_config_has_required_llm_api_keys(config: AppConfig) -> None:
|
||||
|
||||
logger.error("Set your Groq API key in .env or as an environment variable")
|
||||
logger.info(
|
||||
"For further instructions: https://docs.agpt.co/classic/original_autogpt/setup/#groq"
|
||||
"For further instructions: " +
|
||||
"https://docs.agpt.co/classic/original_autogpt/setup/#groq"
|
||||
)
|
||||
raise ValueError("Groq is unavailable: can't load credentials")
|
||||
except AuthenticationError as e:
|
||||
@@ -202,7 +203,8 @@ async def assert_config_has_required_llm_api_keys(config: AppConfig) -> None:
|
||||
"Set your OpenAI API key in .env or as an environment variable"
|
||||
)
|
||||
logger.info(
|
||||
"For further instructions: https://docs.agpt.co/classic/original_autogpt/setup/#openai"
|
||||
"For further instructions: " +
|
||||
"https://docs.agpt.co/classic/original_autogpt/setup/#openai"
|
||||
)
|
||||
raise ValueError("OpenAI is unavailable: can't load credentials")
|
||||
except AuthenticationError as e:
|
||||
|
||||
@@ -59,7 +59,10 @@ txt_to_rtf("../LICENSE", license_file)
|
||||
setup(
|
||||
executables=[
|
||||
Executable(
|
||||
"classic/original_autogpt/__main__.py", target_name="autogpt", base="console", icon=icon
|
||||
"classic/original_autogpt/__main__.py",
|
||||
target_name="autogpt",
|
||||
base="console",
|
||||
icon=icon,
|
||||
),
|
||||
],
|
||||
options={
|
||||
|
||||
Reference in New Issue
Block a user