Skip to content

Commit

Permalink
add initial msg to initial_persona_chat_message same as on web (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
beastoin authored Feb 25, 2025
2 parents e7fa7e6 + 833bbdc commit ec9e927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/utils/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def initial_persona_chat_message(uid: str, app: Optional[App] = None, messages:
chat_messages.append(AIMessage(content=msg.text))
else:
chat_messages.append(HumanMessage(content=msg.text))
chat_messages.append(HumanMessage(content='lets begin. you write the first message, one short provocative question relevant to your identity. never respond with **. while continuing the convo, always respond w short msgs, lowercase.'))
llm_call = llm_persona_mini_stream
if app.is_influencer:
llm_call = llm_persona_medium_stream
Expand Down

0 comments on commit ec9e927

Please sign in to comment.