AutoGPT: Prompt tweaks

This commit is contained in:
Reinier van der Leer
2023-10-17 21:22:23 -07:00
parent 344ef3bf8b
commit 21a014790f
2 changed files with 3 additions and 3 deletions

View File

@@ -308,8 +308,8 @@ class OneShotAgentPromptStrategy(PromptStrategy):
) )
return ( return (
f"Respond strictly with JSON{', and also specify a command to use through a function_call' if use_functions_api else ''}. " f"Respond strictly with a JSON object{' containing your thoughts, and a function_call specifying the next command to use' if use_functions_api else ''}. "
"The JSON should be compatible with the TypeScript type `Response` from the following:\n" "The JSON object should be compatible with the TypeScript type `Response` from the following:\n"
f"{response_format}" f"{response_format}"
) )

View File

@@ -21,7 +21,7 @@ logger = logging.getLogger(__name__)
@command( @command(
"finish", "finish",
"Use this to shut down once you have accomplished all of your goals," "Use this to shut down once you have completed your task,"
" or when there are insurmountable problems that make it impossible" " or when there are insurmountable problems that make it impossible"
" for you to finish your task.", " for you to finish your task.",
{ {