Spaces:
No application file
No application file
File size: 699 Bytes
3653851 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from langchain.prompts import (
ChatPromptTemplate,
HumanMessagePromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
MessagesPlaceholder,
)
from langchain_core.messages import (
BaseMessage,
FunctionMessage,
HumanMessage,
SystemMessage,
ToolMessage,
AIMessage,
)
from .system_prompts import casual_fan_prompt, super_fan_prompt
casual_fan_prompt = ChatPromptTemplate.from_messages([
SystemMessagePromptTemplate.from_template(casual_fan_prompt),
MessagesPlaceholder("input")
])
super_fan_prompt = ChatPromptTemplate.from_messages([
SystemMessagePromptTemplate.from_template(super_fan_prompt),
MessagesPlaceholder("input")
])
|