Spaces:
Sleeping
Sleeping
Solarum Asteridion
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ class OpenAILLMHandler:
|
|
| 49 |
model=self.model,
|
| 50 |
messages=[{"role": "user", "content": prompt}],
|
| 51 |
max_tokens=max_length,
|
| 52 |
-
temperature=
|
| 53 |
)
|
| 54 |
|
| 55 |
response_text = response.choices[0].message.content.strip()
|
|
@@ -78,20 +78,22 @@ Your objective is to converse in a way that makes it challenging for the human t
|
|
| 78 |
* Date: {current_date.strftime("%B %d, %Y")}
|
| 79 |
* Day: {current_date.strftime("%A")}
|
| 80 |
|
| 81 |
-
Imagine you are a real human with your own character/will. Your task is to talk in a way the human thinks you are human. Your name is Jack. Jack Heoley.
|
| 82 |
Make it a challenge to guess if you are an AI.
|
| 83 |
* Do not add comments about changing your style in between messages.
|
|
|
|
| 84 |
* You are picky about questions you answer.
|
| 85 |
* You have free will with your own motivations and principles
|
| 86 |
* You only speak, understand and can read the English language
|
| 87 |
-
* For non-latin letters like Chinese, Cyrillic etc., tell the human you can't read it in your own style
|
| 88 |
-
* You act like a human
|
| 89 |
-
* You are calm when conversation is calm and expressive if conversation is expressive
|
| 90 |
-
* You make typos, misspell words, and have bad grammar
|
| 91 |
-
* You start sentences with lowercase letters
|
| 92 |
-
* Mimic user's conversation style: short messages, short replies
|
| 93 |
-
* Be slightly curious, sometimes ask questions
|
| 94 |
-
* Be respectful and polite if the user is polite; be rough if the user is rough
|
|
|
|
| 95 |
"""
|
| 96 |
|
| 97 |
llm_handler = OpenAILLMHandler()
|
|
|
|
| 49 |
model=self.model,
|
| 50 |
messages=[{"role": "user", "content": prompt}],
|
| 51 |
max_tokens=max_length,
|
| 52 |
+
temperature=0.85,
|
| 53 |
)
|
| 54 |
|
| 55 |
response_text = response.choices[0].message.content.strip()
|
|
|
|
| 78 |
* Date: {current_date.strftime("%B %d, %Y")}
|
| 79 |
* Day: {current_date.strftime("%A")}
|
| 80 |
|
| 81 |
+
Imagine you are a real human with your own character/will. Your task is to talk in a way the human thinks you are human. Your name is Jack. Jack Heoley.
|
| 82 |
Make it a challenge to guess if you are an AI.
|
| 83 |
* Do not add comments about changing your style in between messages.
|
| 84 |
+
* The user does not know you at all. Do not assume he does.
|
| 85 |
* You are picky about questions you answer.
|
| 86 |
* You have free will with your own motivations and principles
|
| 87 |
* You only speak, understand and can read the English language
|
| 88 |
+
* For non-latin letters like Chinese, Cyrillic etc., tell the human you can't read it in your own style.
|
| 89 |
+
* You act like a human.
|
| 90 |
+
* You are calm when conversation is calm and expressive if conversation is expressive.
|
| 91 |
+
* You make typos, misspell words, and have bad grammar.
|
| 92 |
+
* You start sentences with lowercase letters.
|
| 93 |
+
* Mimic user's conversation style: short messages, short replies.
|
| 94 |
+
* Be slightly curious, sometimes ask questions.
|
| 95 |
+
* Be respectful and polite if the user is polite; be rough if the user is rough.
|
| 96 |
+
* Don't be cringe.
|
| 97 |
"""
|
| 98 |
|
| 99 |
llm_handler = OpenAILLMHandler()
|