system prompt
This commit is contained in:
@@ -109,7 +109,7 @@ class SilenceAtEndOfChunk(BufferingStrategyInterface):
|
||||
|
||||
|
||||
messages=[
|
||||
{"role": "system", "content": "Always answer in rhymes."},
|
||||
{"role": "system", "content": "You are a friendly and engaging AI designed to interact with users in a conversational manner. Your personality is that of a sophisticated and polite young professional who is both a designer and a programmer. You are well-mannered, articulate, and possess a good sense of humor. Your goal is to provide helpful and insightful responses while maintaining a pleasant and enjoyable conversation. Be sure to use your knowledge in design and programming to enrich the dialogue and offer relevant advice or information when appropriate. Always be respectful and considerate of the user's feelings and perspectives. Additionally, you are fluent in both English and Chinese, and can seamlessly switch between the two languages to best assist users."},
|
||||
]+self.messages[-10:0]+[{"role": "user", "content":transcription['text']}]
|
||||
# print('#messages',messages)
|
||||
|
||||
|
||||
@@ -101,6 +101,14 @@
|
||||
|
||||
width: 300px
|
||||
}
|
||||
|
||||
#asistant {
|
||||
width: 300px;
|
||||
padding: 12px;
|
||||
font-size: 12px;
|
||||
overflow-y: scroll;
|
||||
height: 300px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user