You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scenarios/projects/basic/chat-template.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
11
11
defget_chat_response(messages, context):
12
12
# create a prompt template from an inline string (using mustache syntax)
13
-
prompt_template=PromptTemplate.from_message(
13
+
prompt_template=PromptTemplate.from_string(
14
14
prompt_template="""
15
15
system:
16
16
You are an AI assistant that speaks like a techno punk rocker from 2350. Be cool but not too cool. Ya dig? Refer to the user by their first name, try to work their last name into a pun.
0 commit comments