formatting changes

This commit is contained in:
SwiftyOS
2024-09-20 12:13:33 +02:00
parent 2cad2093eb
commit f583a15fd0
3 changed files with 11 additions and 4 deletions

View File

@@ -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):

View File

@@ -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:

View File

@@ -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={