From ff9b824a2a05635bb8c00ed02d04f23eb048b03c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Wed, 29 Mar 2023 09:56:11 +0200 Subject: [PATCH] fixed whitespace in reverse prompt issue --- examples/reason-act.sh | 5 +++-- prompts/reason-act.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/reason-act.sh b/examples/reason-act.sh index 11a52d2f2..e7fe655db 100755 --- a/examples/reason-act.sh +++ b/examples/reason-act.sh @@ -6,11 +6,12 @@ cd .. # get -m model parameter otherwise defer to default if [ "$1" == "-m" ]; then - MODEL="-m $1" + MODEL="-m $2 " fi ./main $MODEL --color \ -f ./prompts/reason-act.txt \ -i --interactive-first \ --top_k 10000 --temp 0.2 --repeat_penalty 1 -t 7 -c 2048 \ - -r "Question: " -r "Observation: " -n -1 + -r "Question:" -r "Observation:" --in-prefix " " \ + -n -1 diff --git a/prompts/reason-act.txt b/prompts/reason-act.txt index 98d6eb2e1..872016631 100644 --- a/prompts/reason-act.txt +++ b/prompts/reason-act.txt @@ -15,4 +15,4 @@ Answer: The calculate tool says it is 9.3333333333 Question: What is capital of france? Thought: Do I need to use an action? No, I know the answer Answer: Paris is the capital of France -Question: +Question: