mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-06 08:01:31 +00:00
banners params polish
This commit is contained in:
parent
6d7c2653f0
commit
7bdfe40ed1
3 changed files with 6 additions and 7 deletions
|
|
@ -6,9 +6,9 @@ import re
|
|||
class UnsecuredConnectionCheck(Extension):
|
||||
"""Check: non-local without credentials, or credentials over non-HTTPS."""
|
||||
|
||||
async def execute(self, banners: list = [], context: dict = {}, **kwargs):
|
||||
hostname = context.get("hostname", "")
|
||||
protocol = context.get("protocol", "")
|
||||
async def execute(self, banners: list = [], frontend_context: dict = {}, **kwargs):
|
||||
hostname = frontend_context.get("hostname", "")
|
||||
protocol = frontend_context.get("protocol", "")
|
||||
|
||||
auth_login = dotenv.get_dotenv_value(dotenv.KEY_AUTH_LOGIN, "")
|
||||
auth_password = dotenv.get_dotenv_value(dotenv.KEY_AUTH_PASSWORD, "")
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class MissingApiKeyCheck(Extension):
|
|||
"embedding": "Embedding Model",
|
||||
}
|
||||
|
||||
async def execute(self, banners: list = [], context: dict = {}, **kwargs):
|
||||
async def execute(self, banners: list = [], frontend_context: dict = {}, **kwargs):
|
||||
current_settings = settings_helper.get_settings()
|
||||
model_providers = {
|
||||
"chat": current_settings.get("chat_model_provider", ""),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue