File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ async def compose_prompt(
8787 context : Context ,
8888 user_transcribed_message : TranscribedMessage ,
8989 ) -> str :
90- current_date_prompt = _get_current_date_prompt ()
90+ current_date = _get_current_date_prompt ()
91+ current_date_prompt = f"Today's date and time is: { current_date } "
9192 user_input_prompt = await self ._compose_user_input_prompt (
9293 transcribed_message = user_transcribed_message
9394 )
@@ -99,13 +100,15 @@ async def compose_prompt(
99100 user_introduction_prompt = await self ._compose_user_introduction_prompt (
100101 initiator , context
101102 )
102- return (
103- f"Today's date and time is: { current_date_prompt } \n "
104- f"{ user_input_prompt } \n "
105- f"{ chat_history_prompt } \n "
106- f"{ chat_facts_prompt } \n "
107- f"{ user_facts_prompt } \n "
108- f"{ user_introduction_prompt } \n "
103+ return "\n " .join (
104+ [
105+ current_date_prompt ,
106+ user_input_prompt ,
107+ chat_history_prompt ,
108+ chat_facts_prompt ,
109+ user_facts_prompt ,
110+ user_introduction_prompt ,
111+ ]
109112 )
110113
111114 async def get_reply_system_prompt (self , context : Context ) -> str :
You can’t perform that action at this time.
0 commit comments