aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2023-04-13 11:33:16 +0200
committerGitHub <noreply@github.com>2023-04-13 11:33:16 +0200
commit82d146df9b43cf677e0dbce20b03cf864958a0cc (patch)
tree51247c2fc7c22bb77cac569f99fcba11db74708d
parente7f6997f897a18b6372a6460e25c5f89e1469f1d (diff)
do not force the prompt file to end with a new line (#908)
-rw-r--r--.editorconfig3
-rw-r--r--prompts/chat-with-bob.txt2
-rw-r--r--prompts/reason-act.txt2
3 files changed, 5 insertions, 2 deletions
diff --git a/.editorconfig b/.editorconfig
index df8aaf5..135a7e4 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -14,3 +14,6 @@ indent_size = 4
[Makefile]
indent_style = tab
+
+[prompts/*.txt]
+insert_final_newline = unset
diff --git a/prompts/chat-with-bob.txt b/prompts/chat-with-bob.txt
index 009da39..ad494d8 100644
--- a/prompts/chat-with-bob.txt
+++ b/prompts/chat-with-bob.txt
@@ -4,4 +4,4 @@ User: Hello, Bob.
Bob: Hello. How may I help you today?
User: Please tell me the largest city in Europe.
Bob: Sure. The largest city in Europe is Moscow, the capital of Russia.
-User:
+User: \ No newline at end of file
diff --git a/prompts/reason-act.txt b/prompts/reason-act.txt
index 8720166..a4f4f4e 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: \ No newline at end of file