aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/autogpt/app/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/autogpt/autogpt/app/setup.py')
-rw-r--r--autogpts/autogpt/autogpt/app/setup.py20
1 files changed, 9 insertions, 11 deletions
diff --git a/autogpts/autogpt/autogpt/app/setup.py b/autogpts/autogpt/autogpt/app/setup.py
index df4e9436c..94460e62f 100644
--- a/autogpts/autogpt/autogpt/app/setup.py
+++ b/autogpts/autogpt/autogpt/app/setup.py
@@ -69,20 +69,18 @@ async def interactively_revise_ai_settings(
)
if (
- await clean_input(app_config, "Continue with these settings? [Y/n]")
+ clean_input(app_config, "Continue with these settings? [Y/n]").lower()
or app_config.authorise_key
) == app_config.authorise_key:
break
# Ask for revised ai_profile
ai_profile.ai_name = (
- await clean_input(
- app_config, "Enter AI name (or press enter to keep current):"
- )
+ clean_input(app_config, "Enter AI name (or press enter to keep current):")
or ai_profile.ai_name
)
ai_profile.ai_role = (
- await clean_input(
+ clean_input(
app_config, "Enter new AI role (or press enter to keep current):"
)
or ai_profile.ai_role
@@ -94,7 +92,7 @@ async def interactively_revise_ai_settings(
constraint = directives.constraints[i]
print_attribute(f"Constraint {i+1}:", f'"{constraint}"')
new_constraint = (
- await clean_input(
+ clean_input(
app_config,
f"Enter new constraint {i+1}"
" (press enter to keep current, or '-' to remove):",
@@ -112,7 +110,7 @@ async def interactively_revise_ai_settings(
# Add new constraints
while True:
- new_constraint = await clean_input(
+ new_constraint = clean_input(
app_config,
"Press enter to finish, or enter a constraint to add:",
)
@@ -126,7 +124,7 @@ async def interactively_revise_ai_settings(
resource = directives.resources[i]
print_attribute(f"Resource {i+1}:", f'"{resource}"')
new_resource = (
- await clean_input(
+ clean_input(
app_config,
f"Enter new resource {i+1}"
" (press enter to keep current, or '-' to remove):",
@@ -143,7 +141,7 @@ async def interactively_revise_ai_settings(
# Add new resources
while True:
- new_resource = await clean_input(
+ new_resource = clean_input(
app_config,
"Press enter to finish, or enter a resource to add:",
)
@@ -157,7 +155,7 @@ async def interactively_revise_ai_settings(
best_practice = directives.best_practices[i]
print_attribute(f"Best Practice {i+1}:", f'"{best_practice}"')
new_best_practice = (
- await clean_input(
+ clean_input(
app_config,
f"Enter new best practice {i+1}"
" (press enter to keep current, or '-' to remove):",
@@ -174,7 +172,7 @@ async def interactively_revise_ai_settings(
# Add new best practices
while True:
- new_best_practice = await clean_input(
+ new_best_practice = clean_input(
app_config,
"Press enter to finish, or add a best practice to add:",
)