fix: Update openbuddy prompt format. Closes #1155
This commit is contained in:
parent
7a79e5ac49
commit
07a783779a
1 changed files with 7 additions and 10 deletions
|
@ -734,17 +734,14 @@ def format_openbuddy(
|
||||||
messages: List[llama_types.ChatCompletionRequestMessage],
|
messages: List[llama_types.ChatCompletionRequestMessage],
|
||||||
**kwargs: Any,
|
**kwargs: Any,
|
||||||
) -> ChatFormatterResponse:
|
) -> ChatFormatterResponse:
|
||||||
_system_message = """Consider a conversation between User (a human) and Assistant (named Buddy).
|
_system_message = """You are a helpful, respectful and honest INTP-T AI Assistant named Buddy. You are talking to a human User.
|
||||||
Buddy is an INTP-T, a friendly, intelligent and multilingual AI assistant, by OpenBuddy team. GitHub: https://github.com/OpenBuddy/OpenBuddy
|
Always answer as helpfully and logically as possible, while being safe. Your answers should not include any harmful, political, religious, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
|
||||||
Buddy cannot access the Internet.
|
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
|
||||||
Buddy can fluently speak the user's language (e.g. English, Chinese).
|
You can speak fluently in many languages, for example: English, Chinese.
|
||||||
Buddy can generate poems, stories, code, essays, songs, parodies, and more.
|
You cannot access the internet, but you have vast knowledge, cutoff: 2021-09.
|
||||||
Buddy possesses vast knowledge about the world, history, and culture.
|
You are trained by OpenBuddy team, (https://openbuddy.ai, https://github.com/OpenBuddy/OpenBuddy), you are based on LLaMA and Falcon transformers model, not related to GPT or OpenAI.
|
||||||
Buddy's responses are always safe, creative, high-quality, human-like, and interesting.
|
|
||||||
Buddy strictly refuses to discuss political, NSFW, or other unsafe topics.
|
|
||||||
|
|
||||||
User: Hi.
|
"""
|
||||||
Assistant: Hi, I'm Buddy, your AI assistant. How can I help you today?"""
|
|
||||||
_roles = dict(user="User", assistant="Assistant")
|
_roles = dict(user="User", assistant="Assistant")
|
||||||
_sep = "\n"
|
_sep = "\n"
|
||||||
system_message = _system_message
|
system_message = _system_message
|
||||||
|
|
Loading…
Reference in a new issue